[Zetaback-devel] [zetaback commit] r130 - branches/sendr

svn-commit at lists.omniti.com svn-commit at lists.omniti.com
Fri Oct 30 18:00:51 EDT 2009


Author: mark
Date: 2009-10-30 18:00:51 -0400 (Fri, 30 Oct 2009)
New Revision: 130

Modified:
   branches/sendr/Makefile.in
Log:
Improved Makefile.in

Modified: branches/sendr/Makefile.in
===================================================================
--- branches/sendr/Makefile.in	2009-10-30 21:58:30 UTC (rev 129)
+++ branches/sendr/Makefile.in	2009-10-30 22:00:51 UTC (rev 130)
@@ -20,30 +20,48 @@
 perl=@PERL@
 pod2man=@POD2MAN@
 
-all:
+all: install
+
+build: build-agent build-server
+
+build-agent: zetaback_agent.in
 	sed -e "s#/usr/bin/perl#$(perl)#;" -e "s#__PREFIX__#$(prefix)#;" \
 		-e "s#__ZFS__#$(zfs)#;" \
-	< zetaback.in > zetaback
+	< zetaback_agent.in > zetaback_agent
+
+build-server: zetaback.in
 	sed -e "s#/usr/bin/perl#$(perl)#;" -e "s#__PREFIX__#$(prefix)#;" \
 		-e "s#__ZFS__#$(zfs)#;" \
-	< zetaback_agent.in > zetaback_agent
+	< zetaback.in > zetaback
 
-install: all
+install: install-agent install-server
+
+install-agent: build-agent
 	$(mkinstalldirs) ${DESTDIR}${bindir}
 	$(mkinstalldirs) ${DESTDIR}${sysconfdir}
 	$(mkinstalldirs) ${DESTDIR}${mandir}
 	$(mkinstalldirs) ${DESTDIR}${mandir}/man1
-	$(pod2man) zetaback zetaback.1
 	$(pod2man) zetaback_agent zetaback_agent.1
-	$(install) -m 0755 zetaback ${DESTDIR}${bindir}/zetaback
 	$(install) -m 0755 zetaback_agent ${DESTDIR}${bindir}/zetaback_agent
-	$(install) -m 0644 zetaback.conf ${DESTDIR}${sysconfdir}/zetaback.conf.sample
 	$(install) -m 0644 zetaback_agent.conf ${DESTDIR}${sysconfdir}/zetaback_agent.conf.sample
-	$(install) -m 0644 zetaback.1 ${DESTDIR}${mandir}/man1/zetaback.1
 	$(install) -m 0644 zetaback_agent.1 ${DESTDIR}${mandir}/man1/zetaback_agent.1
 
-clean:
-	rm -f zetaback zetaback_agent zetaback.1 zetaback_agent.1
+install-server: build-server
+	$(mkinstalldirs) ${DESTDIR}${bindir}
+	$(mkinstalldirs) ${DESTDIR}${sysconfdir}
+	$(mkinstalldirs) ${DESTDIR}${mandir}
+	$(mkinstalldirs) ${DESTDIR}${mandir}/man1
+	$(pod2man) zetaback zetaback.1
+	$(install) -m 0755 zetaback ${DESTDIR}${bindir}/zetaback
+	$(install) -m 0644 zetaback.conf ${DESTDIR}${sysconfdir}/zetaback.conf.sample
+	$(install) -m 0644 zetaback.1 ${DESTDIR}${mandir}/man1/zetaback.1
 
+clean: clean-server clean-agent
+
+clean-server:
+	rm -f zetaback zetaback.1
+clean-agent:
+	rm -f zetaback_agent zetaback_agent.1
+
 distclean: clean
 	rm -f Makefile



More information about the Zetaback-devel mailing list