make sure directory to install stuff exists before installing
This commit is contained in:
parent
808690c888
commit
a320f7a2b7
|
@ -10,6 +10,14 @@ CATS= africa america areas arith asia babies bard chinese collectives \
|
|||
HIDEGAME=hidegame
|
||||
|
||||
beforeinstall:
|
||||
@if [ ! -d ${DESTDIR}/usr/share/games/quiz.db ]; then \
|
||||
/bin/rm -f ${DESTDIR}/usr/share/games/quiz.db ; \
|
||||
mkdir -p ${DESTDIR}/usr/share/games/quiz.db ; \
|
||||
chown root.wheel ${DESTDIR}/usr/share/games/quiz.db ; \
|
||||
chmod 755 ${DESTDIR}/usr/share/games/quiz.db ; \
|
||||
else \
|
||||
true ; \
|
||||
fi
|
||||
(cd ${.CURDIR}/datfiles; install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
|
||||
${CATS} ${DESTDIR}/usr/share/games/quiz.db)
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ NOOBJ= noobj
|
|||
SHARED= copies
|
||||
#SHARED= symlinks
|
||||
|
||||
install: _PROGSUBDIR ${SHARED}
|
||||
install: beforeinstall _PROGSUBDIR ${SHARED}
|
||||
@echo installing ${FILES}
|
||||
@-for i in ${FILES}; do \
|
||||
cmp -s $$i ${DESTDIR}/usr/include/$$i || \
|
||||
|
@ -66,6 +66,16 @@ install: _PROGSUBDIR ${SHARED}
|
|||
chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/$$i; \
|
||||
done
|
||||
|
||||
beforeinstall:
|
||||
@if [ ! -d ${DESTDIR}/usr/include ]; then \
|
||||
/bin/rm -f ${DESTDIR}/usr/include ; \
|
||||
mkdir -p ${DESTDIR}/usr/include ; \
|
||||
chown root.wheel ${DESTDIR}/usr/include ; \
|
||||
chmod 755 ${DESTDIR}/usr/include ; \
|
||||
else \
|
||||
true ; \
|
||||
fi
|
||||
|
||||
copies:
|
||||
@echo copies: ${LDIRS}
|
||||
@-for i in ${LDIRS}; do \
|
||||
|
|
Loading…
Reference in New Issue