[PATCH 2/3] build: use UNITDIR and INIT from yum.spec

Zdenek Pavlas zpavlas at redhat.com
Mon Jan 13 15:45:54 UTC 2014


---
 Makefile          | 2 +-
 yum-cron/Makefile | 4 ----
 2 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/Makefile b/Makefile
index f203c4d..9389aa8 100644
--- a/Makefile
+++ b/Makefile
@@ -37,7 +37,7 @@ install:
 	mkdir -p $(DESTDIR)/var/cache/yum
 	mkdir -p $(DESTDIR)/var/lib/yum
 
-	for d in $(SUBDIRS); do make PYTHON=$(PYTHON) DESTDIR=`cd $(DESTDIR); pwd` -C $$d install; [ $$? = 0 ] || exit 1; done
+	for d in $(SUBDIRS); do make PYTHON=$(PYTHON) DESTDIR=`cd $(DESTDIR); pwd` UNITDIR=$(UNITDIR) INIT=$(INIT) -C $$d install; [ $$? = 0 ] || exit 1; done
 
 apidocs:
 	make -C docs/sphinxdocs html
diff --git a/yum-cron/Makefile b/yum-cron/Makefile
index 875d3d7..cd3ff5f 100644
--- a/yum-cron/Makefile
+++ b/yum-cron/Makefile
@@ -1,7 +1,3 @@
-UNITDIR=/lib/systemd/system
-
-INIT=systemd
-
 all:
 	echo "Nothing to do"
 
-- 
1.7.11.7



More information about the Yum-devel mailing list