[Ovirt-devel] [PATCH ovirt-node-image] do not use empty variables
Alan Pevec
apevec at redhat.com
Wed Sep 17 13:29:15 UTC 2008
to avoid error: Macro %fedora_url has empty body
Signed-off-by: Alan Pevec <apevec at redhat.com>
---
Makefile | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index 60fa9b4..969fa04 100644
--- a/Makefile
+++ b/Makefile
@@ -4,10 +4,13 @@ all: rpms
include release.mk
# FEDORA_URL env var can be set to the root of a fedora mirror
+ifneq ($(FEDORA_URL),)
+RPM_FLAGS += --define "fedora_url $(FEDORA_URL)"
+endif
# OVIRT_URL env var can be set to the root of an ovirt.org mirror
-RPM_FLAGS += \
- --define "fedora_url $(FEDORA_URL)" \
- --define "ovirt_url $(OVIRT_URL)"
+ifneq ($(OVIRT_URL),)
+RPM_FLAGS += --define "ovirt_url $(OVIRT_URL)"
+endif
clean:
rm -rf $(pkg_name)-*
--
1.5.5.1
More information about the ovirt-devel
mailing list