freebsd-nq/games/fortune/datfiles/Makefile
Bruce Evans 76a4217503 Fixed annoying non-null output for `make depend'. SRCS should only
be used for C, C++ and assembler sources if <bsd.prog.mk> is
included.  It was used for general files.  This caused the __depend_*
lists in <bsd.dep.mk> to be empty, so mkdep was never run, so
.depend never existed, so it was always out of date, so `rm -f
.depend' was always executed to update it.
1996-09-22 14:45:23 +00:00

54 lines
1.3 KiB
Makefile

# @(#)Makefile 8.2 (Berkeley) 4/19/94
FILES= fortunes fortunes2 startrek zippy
BLDS= fortunes.dat fortunes2.dat startrek.dat zippy.dat \
fortunes-o fortunes-o.dat
# TO INSTALL THE POTENTIALLY OFFENSIVE FORTUNES, UNCOMMENT THE THREE
# LINES AND COMMENT OUT THE FOURTH LINE.
# THE THREE LINES
FILES+= fortunes2-o limerick
BLDS+= fortunes2-o.dat limerick.dat
TYPE= real
# THE FOURTH LINE
#TYPE= fake
.if exists(${.OBJDIR}/../../caesar/caesar)
CAESAR=${.OBJDIR}/../../caesar/caesar
.elif exists(${.CURDIR}/../../caesar/caesar)
CAESAR=${.CURDIR}/../../caesar/caesar
.else
CAESAR=/usr/games/caesar
.endif
.if exists(${.OBJDIR}/../strfile/strfile)
STRFILE=${.OBJDIR}/../strfile/strfile
.elif exists(${.CURDIR}/../strfile/strfile)
STRFILE=${.CURDIR}/../strfile/strfile
.else
STRFILE=/usr/games/strfile
.endif
CLEANFILES+=${BLDS}
all: ${FILES} ${BLDS}
install:
(cd ${.CURDIR} && ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
${FILES} ${DESTDIR}/usr/share/games/fortune)
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${BLDS} \
${DESTDIR}/usr/share/games/fortune
fortunes.dat fortunes2.dat fortunes2-o.dat limerick.dat startrek.dat zippy.dat:
${STRFILE} -rs ${.CURDIR}/${.TARGET:R} ${.TARGET}
fortunes-o.dat: fortunes-o
${STRFILE} -rsx fortunes-o ${.TARGET}
fortunes-o: fortunes-o.${TYPE}
${CAESAR} 13 < ${.ALLSRC} > ${.TARGET}
.include <bsd.prog.mk>