[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

diffs - part IV

so - now something new - i did a make build with DESTDIR set - i wanted to put
all the stuff to a fresh clean disk - but how to get the /etc stuff there ? -
going to etc and doing make distribution does a make install for all (but i
want to be able to only install the /etc stuff without doing again a full make
install after the make build) - so i added a rule for only installing the
stuff into /etc - really simple:

Index: src/etc/Makefile
RCS file: /cvs/src/etc/Makefile,v
retrieving revision 1.23
diff -u -r1.23 Makefile
--- Makefile	1996/08/16 22:05:36	1.23
+++ Makefile	1996/08/24 09:03:37
@@ -31,12 +31,11 @@
 all clean cleandir depend etc install lint:
 .ifndef DESTDIR
-distribution distrib-dirs snapshot:
+distribution-etc-root-var distribution distrib-dirs snapshot:
 	@echo setenv DESTDIR before doing that!
-distribution: distrib-dirs
-	(cd ..; ${MAKE} install)
+distribution-etc-root-var: distrib-dirs
 	install -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc
 	cat etc.${MACHINE}/ttys ttys.pty > ${DESTDIR}/etc/ttys && \
 	    chown ${BINOWN} ${DESTDIR}/etc/ttys && \
@@ -131,6 +130,9 @@
 	(cd ../usr.sbin/sendmail/cf/cf; ${MAKE} distribution)
+distribution: distribution-etc-root-var
+	(cd ..; ${MAKE} install)
 	(cd etc.tahoe; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${WCS2} \


  thomas graichen    graichen_(_at_)_mail_(_dot_)_physik_(_dot_)_fu-berlin_(_dot_)_de    graichen_(_at_)_FreeBSD_(_dot_)_org

  perfection is reached, not when there is no longer anything to add, but when
      there is no longer anything to take away    antoine de saint-exupery