date and time created 89/05/23 10:06:08 by bostic
[unix-history] / usr / src / old / Makefile
index 1e1b3b2..e2ef6b1 100644 (file)
@@ -1,17 +1,26 @@
-# Kludge Makefile to make just uncompact
-
+#
+# Copyright (c) 1987 Regents of the University of California.
+# All rights reserved.  The Berkeley software License Agreement
+# specifies the terms and conditions for redistribution.
+#
+#      @(#)Makefile    1.2     (Berkeley)      %G%
+#
 DESTDIR=
 DESTDIR=
+SUBDIR=        man compact
 
 
-all: FRC
-       cd compact; make ${MFLAGS} uncompact
+all: ${SUBDIR}
 
 
-depend:
+${SUBDIR}: FRC
+       cd $@; make ${MFLAGS}
 
 install: FRC
 
 install: FRC
-       cd compact; install -s uncompact ${DESTDIR}/usr/old
+       -for i in ${SUBDIR}; do \
+               (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done
 
 clean: FRC
 
 clean: FRC
-       cd compact; make ${MFLAGS} clean
+       -for i in ${SUBDIR}; do (echo $$i; cd $$i; make ${MFLAGS} clean); done
 
 
-FRC:
+depend:
+       -for i in ${SUBDIR}; do (echo $$i; cd $$i; make ${MFLAGS} depend); done
 
 
+FRC: