build datfiles at make time, not at install time
This commit is contained in:
parent
a21ff8dbcd
commit
a24a91d611
|
@ -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>
|
||||
|
|
|
@ -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 ; \
|
||||
|
|
Loading…
Reference in New Issue