date and time created 90/06/07 23:11:39 by bostic
[unix-history] / usr / src / usr.bin / pascal / Makefile
index 36d0d16..2d395bd 100644 (file)
@@ -1,32 +1,34 @@
 #
 #
-# Copyright (c) 1980 Regents of the University of California.
-# All rights reserved.  The Berkeley software License Agreement
-# specifies the terms and conditions for redistribution.
+# Copyright (c) 1989 The Regents of the University of California.
+# All rights reserved.
 #
 #
-#      @(#)Makefile    5.2 (Berkeley) %G%
+# Redistribution and use in source and binary forms are permitted
+# provided that the above copyright notice and this paragraph are
+# duplicated in all such forms and that any documentation,
+# advertising materials, and other materials related to such
+# distribution and use acknowledge that the software was developed
+# by the University of California, Berkeley.  The name of the
+# University may not be used to endorse or promote products derived
+# from this software without specific prior written permission.
+# THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+#
+#      @(#)Makefile    5.6 (Berkeley) %G%
 #
 #
-DESTDIR=
 CFLAGS=        -O
 
 CFLAGS=        -O
 
-# Programs that live in subdirectories, and have makefiles of their own.
-#
-SUBDIR=        eyacc pi pc0 px pxp pdx utilities
+SUBDIR=        pi pc0 px pxp pdx man utilities
 
 
-all:
-       for i in ${SUBDIR}; do \
-               (cd $$i; make ${MFLAGS}); \
-       done
+all clean cleandir install lint tags:
+       for i in eyacc ${SUBDIR}; do \
+               (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} $@); done
 
 
-${SUBDIR}: /tmp
+${SUBDIR}: FRC
        cd $@; make ${MFLAGS}
 
        cd $@; make ${MFLAGS}
 
-install:
-       for i in ${SUBDIR}; do \
-               (echo $$i; cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); \
-       done
-
-clean:
-       rm -f a.out core *.s *.o
+depend:
+       (cd eyacc; make ${MFLAGS} depend)
+       (cd eyacc; make ${MFLAGS} all)
        for i in ${SUBDIR}; do \
        for i in ${SUBDIR}; do \
-               (echo $$i; cd $$i; make ${MFLAGS} clean); \
-       done
+               (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} depend); done