Makefile revision 16663
160789Sps# @(#)Makefile 8.2 (Berkeley) 4/19/94 260789Sps 360789SpsSRCS= fortunes fortunes2 startrek zippy 460789SpsBLDS= fortunes.dat fortunes2.dat startrek.dat zippy.dat \ 560789Sps fortunes-o fortunes-o.dat 660789Sps 760789Sps# TO INSTALL THE POTENTIALLY OFFENSIVE FORTUNES, UNCOMMENT THE THREE 860789Sps# LINES AND COMMENT OUT THE FOURTH LINE. 960789Sps 1060790Sps# THE THREE LINES 1160789SpsSRCS+= fortunes2-o limerick 1260790SpsBLDS+= fortunes2-o.dat limerick.dat 1360789SpsTYPE= real 1460789Sps 1560789Sps# THE FOURTH LINE 16#TYPE= fake 17 18.if exists(${.OBJDIR}/../../caesar/caesar) 19CAESAR=${.OBJDIR}/../../caesar/caesar 20.elif exists(${.CURDIR}/../../caesar/caesar) 21CAESAR=${.CURDIR}/../../caesar/caesar 22.else 23CAESAR=/usr/games/caesar 24.endif 25 26.if exists(${.OBJDIR}/../strfile/strfile) 27STRFILE=${.OBJDIR}/../strfile/strfile 28.elif exists(${.CURDIR}/../strfile/strfile) 29STRFILE=${.CURDIR}/../strfile/strfile 30.else 31STRFILE=/usr/games/strfile 32.endif 33 34CLEANFILES+=${BLDS} 35 36all: ${SRCS} ${BLDS} 37 38install: 39 (cd ${.CURDIR} && ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 40 ${SRCS} ${DESTDIR}/usr/share/games/fortune) 41 ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${BLDS} \ 42 ${DESTDIR}/usr/share/games/fortune 43 44fortunes.dat fortunes2.dat fortunes2-o.dat limerick.dat startrek.dat zippy.dat: 45 ${STRFILE} -rs ${.CURDIR}/${.TARGET:R} ${.TARGET} 46 47fortunes-o.dat: fortunes-o 48 ${STRFILE} -rsx fortunes-o ${.TARGET} 49 50fortunes-o: fortunes-o.${TYPE} 51 ${CAESAR} 13 < ${.ALLSRC} > ${.TARGET} 52 53.include <bsd.prog.mk> 54