summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1996-05-27 09:31:46 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1996-05-27 09:31:46 +0000
commitc12a60de93e437e6d2da41797fbd9bb4c0ec3041 (patch)
treeb5f4379c6371af193ee492273282e0db33fef9b9
parent36f5cb505d044c2b65b9377cc3f5f296d33f979c (diff)
Notes
-rw-r--r--games/fortune/Makefile10
-rw-r--r--games/fortune/datfiles/Makefile25
2 files changed, 23 insertions, 12 deletions
diff --git a/games/fortune/Makefile b/games/fortune/Makefile
index 70778cf00022..d360284b29d3 100644
--- a/games/fortune/Makefile
+++ b/games/fortune/Makefile
@@ -1,15 +1,11 @@
# @(#)Makefile 8.1 (Berkeley) 5/31/93
-SUBDIR= fortune
-
-.ifmake (clean) || (cleandir) || (obj)
-SUBDIR+=datfiles
-.endif
+SUBDIR= fortune
.if !make(install) && !make(distribute)
SUBDIR+=strfile
-.else
-SUBDIR+=datfiles
.endif
+SUBDIR+= datfiles
+
.include <bsd.subdir.mk>
diff --git a/games/fortune/datfiles/Makefile b/games/fortune/datfiles/Makefile
index 1c6de42cd2d8..72786eeb2d02 100644
--- a/games/fortune/datfiles/Makefile
+++ b/games/fortune/datfiles/Makefile
@@ -15,22 +15,37 @@ TYPE= real
# THE FOURTH LINE
#TYPE= fake
+.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
+
CLEANFILES+=${BLDS}
-install: ${SRCS} ${BLDS}
+all: ${SRCS} ${BLDS}
+
+install:
(cd ${.CURDIR} && ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \
${SRCS} ${DESTDIR}/usr/share/games/fortune)
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 ${BLDS} \
${DESTDIR}/usr/share/games/fortune
fortunes.dat fortunes2.dat fortunes2-o.dat limerick.dat startrek.dat zippy.dat:
- ${.CURDIR}/../strfile/obj/strfile -rs \
- ${.CURDIR}/${.TARGET:R} ${.TARGET}
+ ${STRFILE} -rs ${.CURDIR}/${.TARGET:R} ${.TARGET}
fortunes-o.dat: fortunes-o
- ${.CURDIR}/../strfile/obj/strfile -rsx fortunes-o ${.TARGET}
+ ${STRFILE} -rsx fortunes-o ${.TARGET}
fortunes-o: fortunes-o.${TYPE}
- PATH=../../caesar:$$PATH ; caesar 13 < ${.ALLSRC} > ${.TARGET}
+ ${CAESAR} 13 < ${.ALLSRC} > ${.TARGET}
.include <bsd.prog.mk>