BSD 4_3_Tahoe release
[unix-history] / usr / src / usr.bin / eqn / Makefile
index f8011ad..c1076a6 100644 (file)
@@ -1,36 +1,24 @@
-#      Makefile        4.1     83/02/11
-
-CFLAGS=-O
-YFLAGS=-d
-
-SOURCE = e.y e.h diacrit.c eqnbox.c font.c fromto.c funny.c glob.c integral.c \
- io.c lex.c lookup.c mark.c matrix.c move.c over.c paren.c \
- pile.c shift.c size.c sqrt.c text.c
-
-FILES = e.o diacrit.o eqnbox.o font.o fromto.o funny.o glob.o integral.o \
- io.o lex.o lookup.o mark.o matrix.o move.o over.o paren.o \
- pile.o shift.o size.o sqrt.o text.o
-
-eqn:   $(FILES)
-       cc $(CFLAGS) $(FILES) -o eqn
-
-e.c:   e.def
-
-e.def: e.y
-       yacc -d e.y
-       mv y.tab.c e.c
-       mv y.tab.h e.def
-
-$(FILES):      e.h e.def
-
-install: eqn
-       install -s eqn $(DESTDIR)/usr/bin
-
-clean:
-       rm -f *.o e.c e.def eqn
-       
-list:
-       pr TODO $(SOURCE) makefile
-
-lint:  y.tab.c
-       lint -spb *.c
+#
+# 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    5.1     (Berkeley)      12/12/87
+#
+SUBDIR=        eqn neqn
+
+all: FRC
+       for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS}); done
+
+install: FRC
+       for i in ${SUBDIR}; do \
+               (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); \
+       done
+
+clean: FRC
+       for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean); done
+
+depend: FRC
+       for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} depend); done
+
+FRC: