|
|
1.1 root 1: # @(#)Makefile 5.2 (Berkeley) 6/26/90
2:
3: PROGS= fortune strfile unstr
4: SRCS= fortune.c strfile.c unstr.c
5: MAN6= fortune.0
6: BINOWN= games
7: DATFILES=fortunes.dat startrek.dat zippy.dat fortunes-o.dat
8: .PATH: ${.CURDIR} ${.CURDIR}/datfiles
9: CLEANFILES+=strfile unstr
10:
11: all: ${PROGS} ${MAN6} ${DATFILES}
12:
13: ${PROGS}: ${LIBC} ${.PREFIX}.c
14: ${CC} ${CFLAGS} -o ${.TARGET} ${.CURDIR}/${.PREFIX}.c
15:
16: fortunes-o.dat: ${.TARGET:R}
17: ./strfile -rsx ${.CURDIR}/datfiles/${.TARGET:R} ${.TARGET}
18: fortunes.dat startrek.dat zippy.dat: ${.TARGET:R}
19: ./strfile -rs ${.CURDIR}/datfiles/${.TARGET:R} ${.TARGET}
20:
21: clean:
22: rm -f ${PROGS} core *.dat
23:
24: cleandir: clean
25: rm -f ${MAN6} tags .depend
26:
27: depend: ${SRCS}
28: mkdep -p ${CFLAGS} ${.ALLSRC}
29:
30: install:
31: install ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} fortune \
32: ${DESTDIR}/usr/games
33: install -c -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} fortune.0 \
34: ${DESTDIR}/usr/share/man/cat6
35: (cd ${.CURDIR}/datfiles; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
36: ${DATFILES:R} ${DESTDIR}/usr/share/games/fortune)
37: install -o ${BINOWN} -g ${BINGRP} -m 444 ${DATFILES} \
38: ${DESTDIR}/usr/share/games/fortune
39:
40: lint: ${SRCS}
41: cd ${.CURDIR}; lint ${CFLAGS} ${LINTFLAGS} fortune.c
42: cd ${.CURDIR}; lint ${CFLAGS} ${LINTFLAGS} strfile.c
43: cd ${.CURDIR}; lint ${CFLAGS} ${LINTFLAGS} unstr.c
44:
45: tags: ${SRCS}
46: cd ${.CURDIR}; ctags fortune.c
47: cd ${.CURDIR}; ctags strfile.c
48: cd ${.CURDIR}; ctags unstr.c
49: cd ${.CURDIR}; sort -o tags tags
50:
51: .include <bsd.prog.mk>
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.