X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/1c15e88899094343f75aeba04122cd96a96b428e..ad7871609881e73855d0b04da49b486cd93efca7:/usr/src/games/fortune/Makefile diff --git a/usr/src/games/fortune/Makefile b/usr/src/games/fortune/Makefile index afa10bc8bc..ebd7c05608 100644 --- a/usr/src/games/fortune/Makefile +++ b/usr/src/games/fortune/Makefile @@ -1,51 +1,15 @@ -# @(#)Makefile 5.2 (Berkeley) 6/26/90 +# @(#)Makefile 8.1 (Berkeley) 5/31/93 -PROGS= fortune strfile unstr -SRCS= fortune.c strfile.c unstr.c -MAN6= fortune.0 -BINOWN= games -DATFILES=fortunes.dat startrek.dat zippy.dat fortunes-o.dat -.PATH: ${.CURDIR} ${.CURDIR}/datfiles -CLEANFILES+=strfile unstr +SUBDIR= fortune -all: ${PROGS} ${MAN6} ${DATFILES} +.ifmake (clean) || (cleandir) +SUBDIR+=datfiles +.endif -${PROGS}: ${LIBC} ${.PREFIX}.c - ${CC} ${CFLAGS} -o ${.TARGET} ${.CURDIR}/${.PREFIX}.c +.ifmake !(install) +SUBDIR+=strfile +.else +SUBDIR+=datfiles +.endif -fortunes-o.dat: ${.TARGET:R} - ./strfile -rsx ${.CURDIR}/datfiles/${.TARGET:R} ${.TARGET} -fortunes.dat startrek.dat zippy.dat: ${.TARGET:R} - ./strfile -rs ${.CURDIR}/datfiles/${.TARGET:R} ${.TARGET} - -clean: - rm -f ${PROGS} core *.dat - -cleandir: clean - rm -f ${MAN6} tags .depend - -depend: ${SRCS} - mkdep -p ${CFLAGS} ${.ALLSRC} - -install: - install ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} fortune \ - ${DESTDIR}/usr/games - install -c -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} fortune.0 \ - ${DESTDIR}/usr/share/man/cat6 - (cd ${.CURDIR}/datfiles; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \ - ${DATFILES:R} ${DESTDIR}/usr/share/games/fortune) - install -o ${BINOWN} -g ${BINGRP} -m 444 ${DATFILES} \ - ${DESTDIR}/usr/share/games/fortune - -lint: ${SRCS} - cd ${.CURDIR}; lint ${CFLAGS} ${LINTFLAGS} fortune.c - cd ${.CURDIR}; lint ${CFLAGS} ${LINTFLAGS} strfile.c - cd ${.CURDIR}; lint ${CFLAGS} ${LINTFLAGS} unstr.c - -tags: ${SRCS} - cd ${.CURDIR}; ctags fortune.c - cd ${.CURDIR}; ctags strfile.c - cd ${.CURDIR}; ctags unstr.c - cd ${.CURDIR}; sort -o tags tags - -.include +.include