BSD 4_3 development
[unix-history] / usr / contrib / dipress / Makefile
CommitLineData
b75390b0
C
1#
2# Copyright (c) 1984, 1985 Xerox Corp.
3#
4#
5# You might want to change the following defines:
6# TITROFFBINARY the location of your typesetter-independent troff
7# DESTBIN where the executable files should go
8# DESTINCLUDE where the ".h" files go
9# DESTMAN where the manual pages go
10
11TITROFFBINARY = /usr/local/bin/titroff
12DESTBIN = /usr/new
13DESTINCLUDE = /usr/new/include
14DESTLIB = /usr/new/lib
15DESTMAN = /usr/man/mann
16
17#
18# END of user tunable paramters
19#-------------------------------------------------------------
20
21# targets:
22# all - recompile and link everything
23# install - copy include files, libraries, fonts and executables
24# to correct destination
25#
26
27# set up for recursive makes
28MFLAGS = DESTBIN=${DESTBIN} DESTINCLUDE=${DESTINCLUDE} DESTLIB=${DESTLIB} \
29 DESTMAN=${DESTMAN} TITROFFBINARY=${TITROFFBINARY}
30CFLAGS= -O
31
32# Programs that live in subdirectories, and have makefiles of their own.
33#
34# order is important on the next line!
35SUBDIR= src conf.troff
36INSTALLDIR= include bin lib man/man1
37CLEANDIR= src conf.troff bin lib
38
39
40all:
41 for i in ${SUBDIR}; do \
42 (cd $$i; make install); done
43
44# install assumes that a previous "make all" has been done
45
46install:
47 for i in ${INSTALLDIR}; do \
48 (cd $$i; make ${MFLAGS} install); done
49
50clean:
51 rm -f a.out core *.s *.o
52 for i in ${CLEANDIR}; do \
53 (cd $$i; make ${MFLAGS} clean); done
54 @echo "clean-up complete"