Makefile revision 15944
12490Sjkh# @(#)Makefile 8.2 (Berkeley) 4/19/94 22490Sjkh 32490SjkhSRCS= fortunes fortunes2 startrek zippy 42490SjkhBLDS= fortunes.dat fortunes2.dat startrek.dat zippy.dat \ 52490Sjkh fortunes-o fortunes-o.dat 62490Sjkh 72490Sjkh# TO INSTALL THE POTENTIALLY OFFENSIVE FORTUNES, UNCOMMENT THE THREE 82490Sjkh# LINES AND COMMENT OUT THE FOURTH LINE. 92490Sjkh 102490Sjkh# THE THREE LINES 112490SjkhSRCS+= fortunes2-o limerick 122490SjkhBLDS+= fortunes2-o.dat limerick.dat 132490SjkhTYPE= real 142490Sjkh 152490Sjkh# THE FOURTH LINE 162490Sjkh#TYPE= fake 172490Sjkh 1815930Sache.if exists(${.CURDIR}/../../caesar/obj/caesar) 1915930SacheCAESAR=${.CURDIR}/../../caesar/obj/caesar 2015930Sache.elif exists(${.CURDIR}/../../caesar/caesar) 2115930SacheCAESAR=${.CURDIR}/../../caesar/caesar 2215930Sache.else 2315930SacheCAESAR=/usr/games/caesar 2415930Sache.endif 2515930Sache 2615930Sache.if exists(${.CURDIR}/../strfile/obj/strfile) 2715930SacheSTRFILE=${.CURDIR}/../strfile/obj/strfile 2815944Sache.elif exists(${.CURDIR}/../strfile/strfile) 2915944SacheSTRFILE=${.CURDIR}/../strfile/strfile 3015930Sache.else 3115944SacheSTRFILE=/usr/games/strfile 3215930Sache.endif 3315930Sache 342490SjkhCLEANFILES+=${BLDS} 352490Sjkh 3615930Sacheall: ${SRCS} ${BLDS} 3715930Sache 3815930Sacheinstall: 399696Sbde (cd ${.CURDIR} && ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ 402490Sjkh ${SRCS} ${DESTDIR}/usr/share/games/fortune) 419696Sbde ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${BLDS} \ 422490Sjkh ${DESTDIR}/usr/share/games/fortune 432490Sjkh 442490Sjkhfortunes.dat fortunes2.dat fortunes2-o.dat limerick.dat startrek.dat zippy.dat: 4515930Sache ${STRFILE} -rs ${.CURDIR}/${.TARGET:R} ${.TARGET} 462490Sjkh 472490Sjkhfortunes-o.dat: fortunes-o 4815930Sache ${STRFILE} -rsx fortunes-o ${.TARGET} 492490Sjkh 502490Sjkhfortunes-o: fortunes-o.${TYPE} 5115930Sache ${CAESAR} 13 < ${.ALLSRC} > ${.TARGET} 522490Sjkh 532490Sjkh.include <bsd.prog.mk> 54