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