X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/95f51977ddc18faa2e212f30c00a39540b39f325..ca67e7b465996afb3821d6a075c4dc6a7f0f5d52:/usr/src/usr.bin/eqn/Makefile diff --git a/usr/src/usr.bin/eqn/Makefile b/usr/src/usr.bin/eqn/Makefile index f8011adef8..c1076a6b2c 100644 --- a/usr/src/usr.bin/eqn/Makefile +++ b/usr/src/usr.bin/eqn/Makefile @@ -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: