summaryrefslogtreecommitdiffstats
path: root/fortune
diff options
context:
space:
mode:
authorcgd <cgd@NetBSD.org>1993-04-30 05:24:57 +0000
committercgd <cgd@NetBSD.org>1993-04-30 05:24:57 +0000
commitdaa09085374534e035a521d0e617b9f9aedae0ab (patch)
tree6f8a33e6ccf4057a71eeb3409dc9026fb7c1cbb2 /fortune
parent810b140d8d0aea516f8a17534359a3345ba071fa (diff)
downloadbsdgames-darwin-daa09085374534e035a521d0e617b9f9aedae0ab.tar.gz
bsdgames-darwin-daa09085374534e035a521d0e617b9f9aedae0ab.tar.zst
bsdgames-darwin-daa09085374534e035a521d0e617b9f9aedae0ab.zip
build datfiles at make time, not at install time
Diffstat (limited to 'fortune')
-rw-r--r--fortune/Makefile10
-rw-r--r--fortune/datfiles/Makefile4
2 files changed, 6 insertions, 8 deletions
diff --git a/fortune/Makefile b/fortune/Makefile
index ed94afe4..ccb5ba60 100644
--- a/fortune/Makefile
+++ b/fortune/Makefile
@@ -2,14 +2,10 @@
SUBDIR= fortune
-.ifmake (clean) || (cleandir) || (obj)
-SUBDIR+=datfiles
-.endif
-
.ifmake !(install)
-SUBDIR+=strfile
-.else
-SUBDIR+=datfiles
+SUBDIR+= strfile
.endif
+SUBDIR+= datfiles
+
.include <bsd.subdir.mk>
diff --git a/fortune/datfiles/Makefile b/fortune/datfiles/Makefile
index be8c16b2..3a8f75bc 100644
--- a/fortune/datfiles/Makefile
+++ b/fortune/datfiles/Makefile
@@ -13,7 +13,9 @@ DATFILES= ${NORMDAT} ${OBSDAT}
CLEANFILES+=${DATFILES}
-install: ${DATFILES}
+all: ${DATFILES}
+
+install:
@if [ ! -d ${DESTDIR}/usr/share/games/fortune ]; then \
/bin/rm -f ${DESTDIR}/usr/share/games/fortune ; \
mkdir -p ${DESTDIR}/usr/share/games/fortune ; \