From daa09085374534e035a521d0e617b9f9aedae0ab Mon Sep 17 00:00:00 2001 From: cgd Date: Fri, 30 Apr 1993 05:24:57 +0000 Subject: build datfiles at make time, not at install time --- fortune/Makefile | 10 +++------- fortune/datfiles/Makefile | 4 +++- 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 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 ; \ -- cgit v1.2.3