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 SUBDIR= fortune
.ifmake (clean) || (cleandir) || (obj) .ifmake !(install)
SUBDIR+=datfiles SUBDIR+= strfile
.endif .endif
.ifmake !(install) SUBDIR+= datfiles
SUBDIR+=strfile
.else
SUBDIR+=datfiles
.endif
.include <bsd.subdir.mk> .include <bsd.subdir.mk>

View File

@ -13,7 +13,9 @@ DATFILES= ${NORMDAT} ${OBSDAT}
CLEANFILES+=${DATFILES} CLEANFILES+=${DATFILES}
install: ${DATFILES} all: ${DATFILES}
install:
@if [ ! -d ${DESTDIR}/usr/share/games/fortune ]; then \ @if [ ! -d ${DESTDIR}/usr/share/games/fortune ]; then \
/bin/rm -f ${DESTDIR}/usr/share/games/fortune ; \ /bin/rm -f ${DESTDIR}/usr/share/games/fortune ; \
mkdir -p ${DESTDIR}/usr/share/games/fortune ; \ mkdir -p ${DESTDIR}/usr/share/games/fortune ; \