build datfiles at make time, not at install time

This commit is contained in:
cgd 1993-04-30 05:24:57 +00:00
parent a21ff8dbcd
commit a24a91d611
2 changed files with 6 additions and 8 deletions

View File

@ -2,14 +2,10 @@
SUBDIR= fortune
.ifmake (clean) || (cleandir) || (obj)
SUBDIR+=datfiles
.ifmake !(install)
SUBDIR+= strfile
.endif
.ifmake !(install)
SUBDIR+=strfile
.else
SUBDIR+=datfiles
.endif
SUBDIR+= datfiles
.include <bsd.subdir.mk>

View File

@ -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 ; \