Back out the last two hacks. I've added games to the (correct) build
path in src/Makefile.inc. The code that I'm backing out didn't work anyway since exists() checks for a file in .PATH (and /usr/games/strfile doesn't exist there), so the test was always defaulting to ../strfile/strfile which breaks cross-compiled builds.
This commit is contained in:
parent
e6d32e2f1a
commit
fef26fae71
@ -15,19 +15,6 @@ TYPE= real
|
||||
# THE FOURTH LINE
|
||||
#TYPE= fake
|
||||
|
||||
# Try to find these in the build tree
|
||||
.if exists(/usr/games/strfile)
|
||||
STRFILE=/usr/games/strfile
|
||||
.else
|
||||
STRFILE=../strfile/strfile
|
||||
.endif
|
||||
|
||||
.if exists(/usr/games/caesar)
|
||||
CAESAR=/usr/games/caesar
|
||||
.else
|
||||
CAESAR=../../caesar/caesar
|
||||
.endif
|
||||
|
||||
CLEANFILES+=${BLDS}
|
||||
|
||||
all: ${FILES} ${BLDS}
|
||||
@ -39,12 +26,12 @@ install:
|
||||
${DESTDIR}${SHAREDIR}/games/fortune
|
||||
|
||||
fortunes.dat fortunes2.dat fortunes2-o.dat limerick.dat startrek.dat zippy.dat:
|
||||
${STRFILE} -rs ${.CURDIR}/${.TARGET:R} ${.TARGET}
|
||||
strfile -rs ${.CURDIR}/${.TARGET:R} ${.TARGET}
|
||||
|
||||
fortunes-o.dat: fortunes-o
|
||||
${STRFILE} -rsx fortunes-o ${.TARGET}
|
||||
strfile -rsx fortunes-o ${.TARGET}
|
||||
|
||||
fortunes-o: fortunes-o.${TYPE}
|
||||
${CAESAR} 13 < ${.ALLSRC} > ${.TARGET}
|
||||
caesar 13 < ${.ALLSRC} > ${.TARGET}
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user