Commit | Line | Data |
---|---|---|
68921ff9 | 1 | # |
4f53f389 | 2 | # @(#)Makefile 1.5 (CWI) 86/08/14 |
68921ff9 | 3 | # |
b1febbb7 | 4 | CFLAGS= -DINCORE -g |
68921ff9 JA |
5 | DESTDIR= |
6 | BINDIR=/usr/local | |
686168f6 | 7 | SUBDIR= utilities devhar eqn pic ideal grap tbl |
68921ff9 JA |
8 | TFILES=n1.o n2.o n3.o n4.o n5.o t6.o n7.o n8.o n9.o t10.o ni.o nii.o hytab.o suftab.o |
9 | ||
10 | all: ditroff ${SUBDIR} | |
11 | ||
12 | ditroff: ${TFILES} | |
4f53f389 | 13 | ${CC} -o ditroff ${CFLAGS} ${TFILES} |
68921ff9 JA |
14 | |
15 | ${SUBDIR}: /tmp | |
16 | cd $@; make ${MFLAGS} | |
17 | ||
b1febbb7 JA |
18 | n1.o: tdef.h tw.h ext.h ni.o |
19 | n2.o: tdef.h tw.h | |
20 | n3.o: tdef.h tw.h | |
21 | n4.o: tdef.h tw.h | |
22 | n5.o: tdef.h tw.h | |
23 | n6.o: tdef.h tw.h | |
24 | t6.o: tdef.h tw.h dev.h ni.o | |
25 | n7.o: tdef.h tw.h | |
26 | n8.o: tdef.h tw.h | |
27 | n9.o: tdef.h tw.h | |
28 | n10.o: tdef.h tw.h | |
29 | t10.o: tdef.h tw.h dev.h ni.o | |
30 | ni.o: tdef.h tw.h | |
31 | nii.o: tdef.h tw.h | |
68921ff9 JA |
32 | |
33 | install: all | |
34 | install -s ditroff ${DESTDIR}${BINDIR}/ditroff | |
35 | install -c -m 644 ditroff.1 ${DESTDIR}/usr/man/manl/ditroff.1 | |
36 | for i in ${SUBDIR}; do \ | |
37 | (cd $$i; make ${MFLAGS} DESTDIR=${DESTDIR} install); done | |
38 | ||
39 | clean: | |
40 | rm -f make.out *.o ditroff | |
41 | for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean); done |