Fixed afterinstall rule:

- apply chmod to the targets, not to the sources.
- apply chown to the targets.

It is still bogus to install by building in the target directory.  See
mklocale/data/Makefile for a better method.
This commit is contained in:
Bruce Evans 1995-11-18 11:21:37 +00:00
parent 3b9a76f03c
commit 24f7e33dfd

View File

@ -8,11 +8,13 @@ DPADD= ${LIBNCURSES} ${LIBMYTINFO}
LDADD= -lncurses -lmytinfo
LANGS= en_US.ISO_8859-1 fr_FR.ISO_8859-1 de_DE.ISO_8859-1
NLSDIR= ${DESTDIR}/usr/share/nls
afterinstall:
@for i in ${LANGS}; do \
gencat -new ${DESTDIR}/usr/share/nls/$$i/ee.cat ${.CURDIR}/nls/$$i/ee.msg; \
chmod 444 ${.CURDIR}/nls/$$i/ee.msg; \
for l in ${LANGS}; do \
gencat -new ${NLSDIR}/$$l/ee.cat ${.CURDIR}/nls/$$l/ee.msg; \
chown ${BINOWN}.${BINGRP} ${NLSDIR}/$$l/ee.cat; \
chmod 444 ${NLSDIR}/$$l/ee.cat; \
done
.include <bsd.prog.mk>