now a real shell program
[unix-history] / usr / src / local / ditroff / ditroff.okeeffe / Makefile
CommitLineData
68921ff9 1#
4f53f389 2# @(#)Makefile 1.5 (CWI) 86/08/14
68921ff9 3#
b1febbb7 4CFLAGS= -DINCORE -g
68921ff9
JA
5DESTDIR=
6BINDIR=/usr/local
686168f6 7SUBDIR= utilities devhar eqn pic ideal grap tbl
68921ff9
JA
8TFILES=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
10all: ditroff ${SUBDIR}
11
12ditroff: ${TFILES}
4f53f389 13 ${CC} -o ditroff ${CFLAGS} ${TFILES}
68921ff9
JA
14
15${SUBDIR}: /tmp
16 cd $@; make ${MFLAGS}
17
b1febbb7
JA
18n1.o: tdef.h tw.h ext.h ni.o
19n2.o: tdef.h tw.h
20n3.o: tdef.h tw.h
21n4.o: tdef.h tw.h
22n5.o: tdef.h tw.h
23n6.o: tdef.h tw.h
24t6.o: tdef.h tw.h dev.h ni.o
25n7.o: tdef.h tw.h
26n8.o: tdef.h tw.h
27n9.o: tdef.h tw.h
28n10.o: tdef.h tw.h
29t10.o: tdef.h tw.h dev.h ni.o
30ni.o: tdef.h tw.h
31nii.o: tdef.h tw.h
68921ff9
JA
32
33install: 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
39clean:
40 rm -f make.out *.o ditroff
41 for i in ${SUBDIR}; do (cd $$i; make ${MFLAGS} clean); done