1994-09-04 04:03:31 +00:00
|
|
|
# @(#)Makefile 8.2 (Berkeley) 4/19/94
|
|
|
|
|
|
|
|
SRCS= 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
|
|
|
|
SRCS+= fortunes2-o limerick
|
|
|
|
BLDS+= fortunes2-o.dat limerick.dat
|
|
|
|
TYPE= real
|
|
|
|
|
|
|
|
# THE FOURTH LINE
|
|
|
|
#TYPE= fake
|
|
|
|
|
1996-05-27 09:31:46 +00:00
|
|
|
.if exists(${.CURDIR}/../../caesar/obj/caesar)
|
|
|
|
CAESAR=${.CURDIR}/../../caesar/obj/caesar
|
|
|
|
.elif exists(${.CURDIR}/../../caesar/caesar)
|
|
|
|
CAESAR=${.CURDIR}/../../caesar/caesar
|
|
|
|
.else
|
|
|
|
CAESAR=/usr/games/caesar
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if exists(${.CURDIR}/../strfile/obj/strfile)
|
|
|
|
STRFILE=${.CURDIR}/../strfile/obj/strfile
|
|
|
|
.else
|
|
|
|
STRFILE=${.CURDIR}/../strfile/strfile
|
|
|
|
.endif
|
|
|
|
|
1994-09-04 04:03:31 +00:00
|
|
|
CLEANFILES+=${BLDS}
|
|
|
|
|
1996-05-27 09:31:46 +00:00
|
|
|
all: ${SRCS} ${BLDS}
|
|
|
|
|
|
|
|
install:
|
1995-07-24 23:22:00 +00:00
|
|
|
(cd ${.CURDIR} && ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
|
1994-09-04 04:03:31 +00:00
|
|
|
${SRCS} ${DESTDIR}/usr/share/games/fortune)
|
1995-07-24 23:22:00 +00:00
|
|
|
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${BLDS} \
|
1994-09-04 04:03:31 +00:00
|
|
|
${DESTDIR}/usr/share/games/fortune
|
|
|
|
|
|
|
|
fortunes.dat fortunes2.dat fortunes2-o.dat limerick.dat startrek.dat zippy.dat:
|
1996-05-27 09:31:46 +00:00
|
|
|
${STRFILE} -rs ${.CURDIR}/${.TARGET:R} ${.TARGET}
|
1994-09-04 04:03:31 +00:00
|
|
|
|
|
|
|
fortunes-o.dat: fortunes-o
|
1996-05-27 09:31:46 +00:00
|
|
|
${STRFILE} -rsx fortunes-o ${.TARGET}
|
1994-09-04 04:03:31 +00:00
|
|
|
|
|
|
|
fortunes-o: fortunes-o.${TYPE}
|
1996-05-27 09:31:46 +00:00
|
|
|
${CAESAR} 13 < ${.ALLSRC} > ${.TARGET}
|
1994-09-04 04:03:31 +00:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|