diff options
author | cgd <cgd@NetBSD.org> | 1993-04-09 09:37:17 +0000 |
---|---|---|
committer | cgd <cgd@NetBSD.org> | 1993-04-09 09:37:17 +0000 |
commit | 773cf0e4d957a0d9d3c78c2c0551e0e4bea98c5d (patch) | |
tree | 009fab31f634ffc71be030a9de48f08bac256001 /fortune | |
parent | 42d613aa40487211c6231486a70597064179d50c (diff) | |
download | bsdgames-darwin-773cf0e4d957a0d9d3c78c2c0551e0e4bea98c5d.tar.gz bsdgames-darwin-773cf0e4d957a0d9d3c78c2c0551e0e4bea98c5d.tar.zst bsdgames-darwin-773cf0e4d957a0d9d3c78c2c0551e0e4bea98c5d.zip |
fix various install problems.
Diffstat (limited to 'fortune')
-rw-r--r-- | fortune/datfiles/Makefile | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/fortune/datfiles/Makefile b/fortune/datfiles/Makefile index fa86fd73..be8c16b2 100644 --- a/fortune/datfiles/Makefile +++ b/fortune/datfiles/Makefile @@ -7,12 +7,28 @@ # OBSCENE=real -DATFILES=fortunes.dat startrek.dat zippy.dat fortunes-o.dat +NORMDAT= fortunes.dat startrek.dat zippy.dat +OBSDAT= fortunes-o.dat +DATFILES= ${NORMDAT} ${OBSDAT} + CLEANFILES+=${DATFILES} install: ${DATFILES} - install -o ${BINOWN} -g ${BINGRP} -m 444 ${DATFILES} \ + @if [ ! -d ${DESTDIR}/usr/share/games/fortune ]; then \ + /bin/rm -f ${DESTDIR}/usr/share/games/fortune ; \ + mkdir -p ${DESTDIR}/usr/share/games/fortune ; \ + chown root.wheel ${DESTDIR}/usr/share/games/fortune ; \ + chmod 755 ${DESTDIR}/usr/share/games/fortune ; \ + else \ + true ; \ + fi + install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${DATFILES} \ ${DESTDIR}/usr/share/games/fortune + (cd ${.CURDIR} && install -c -o ${BINOWN} -g ${BINGRP} -m 444 \ + ${NORMDAT:R} ${DESTDIR}/usr/share/games/fortune) + (cd ${.CURDIR} && install -c -o ${BINOWN} -g ${BINGRP} -m 444 \ + ${OBSDAT:R}.${OBSCENE}.rot13 \ + ${DESTDIR}/usr/share/games/fortune/${OBSDAT:R}) fortunes-o.dat: ${.TARGET:R}.${OBSCENE}.rot13 ${.CURDIR}/../strfile/obj/strfile -rsx \ |