Makefile revision 27965
1# @(#)Makefile 8.2 (Berkeley) 4/19/94 2 3FILES= fortunes fortunes2 startrek zippy 4BLDS= fortunes.dat fortunes2.dat startrek.dat zippy.dat \ 5 fortunes-o fortunes-o.dat 6 7# TO INSTALL THE POTENTIALLY OFFENSIVE FORTUNES, UNCOMMENT THE THREE 8# LINES AND COMMENT OUT THE FOURTH LINE. 9 10# THE THREE LINES 11FILES+= fortunes2-o limerick 12BLDS+= fortunes2-o.dat limerick.dat 13TYPE= real 14 15# 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: ${FILES} ${BLDS} 37 38install: 39 (cd ${.CURDIR} && ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} \ 40 -m ${NOBINMODE} ${FILES} ${DESTDIR}${SHAREDIR}/games/fortune) 41 ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} ${BLDS} \ 42 ${DESTDIR}${SHAREDIR}/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