summaryrefslogtreecommitdiffstats
path: root/usr.bin/ee/Makefile
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-03-09 06:08:22 +0000
committerbde <bde@FreeBSD.org>1997-03-09 06:08:22 +0000
commitc98bb18e27af9f8a5fa8140c579fcfe675eb5954 (patch)
tree9752a52d5f8796d902be9e6057bc7231212a189a /usr.bin/ee/Makefile
parente016dd059c0446d863f495c9031f3c5bd851a8f5 (diff)
downloadFreeBSD-src-c98bb18e27af9f8a5fa8140c579fcfe675eb5954.zip
FreeBSD-src-c98bb18e27af9f8a5fa8140c579fcfe675eb5954.tar.gz
Don't use a dot in a chown command. In fact, don't use any commands
except `install' at install time. Don't build things at install time. Don't hide the build steps using @. Install with mode ${NOBINMODE} instead of 444. Poor source layout made this harder than it should have been. E.g., a suffix rule can't be used because of the subdirectories, and a new makefile per subdirectory (i.e.m per data file) would be excessive. See /usr/src/usr.bin/mklocale for a better organisation.
Diffstat (limited to 'usr.bin/ee/Makefile')
-rw-r--r--usr.bin/ee/Makefile22
1 files changed, 13 insertions, 9 deletions
diff --git a/usr.bin/ee/Makefile b/usr.bin/ee/Makefile
index 0edddc0..7a7041d 100644
--- a/usr.bin/ee/Makefile
+++ b/usr.bin/ee/Makefile
@@ -2,22 +2,26 @@ CFLAGS+= -DCAP -DHAS_NCURSES -DHAS_UNISTD -DHAS_STDARG -DHAS_STDLIB \
-DHAS_CTYPE -DHAS_SYS_IOCTL -DHAS_SYS_WAIT -DSLCT_HDR
PROG= ee
-SRCS= ee.c
LINKS= ${BINDIR}/ee ${BINDIR}/ree
-MLINKS= ee.1 ree.1
+MLINKS= ee.1 ree.1
DPADD= ${LIBNCURSES} ${LIBMYTINFO}
LDADD= -lncurses -lmytinfo
LANGS= en_US.ISO_8859-1 fr_FR.ISO_8859-1 de_DE.ISO_8859-1
+FILES= ${LANGS:S/$/.ee.cat/}
+CLEANFILES+= ${FILES}
-afterinstall:
-.for l in ${LANGS}
- @${ECHO} "Install ${DESTDIR}${NLSDIR}/${l}/ee.cat"
- @rm -f ${DESTDIR}${NLSDIR}/${l}/ee.cat
- @gencat -new ${DESTDIR}${NLSDIR}/${l}/ee.cat ${.CURDIR}/nls/${l}/ee.msg
- @chown ${BINOWN}.${BINGRP} ${DESTDIR}${NLSDIR}/${l}/ee.cat
- @chmod 444 ${DESTDIR}${NLSDIR}/${l}/ee.cat
+all: ${FILES}
+
+.for lang in ${LANGS}
+${lang}.ee.cat: ${.CURDIR}/nls/${lang}/ee.msg
+ gencat -new ${.TARGET} ${.ALLSRC}
.endfor
+beforeinstall:
+.for lang in ${LANGS}
+ ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
+ ${lang}.ee.cat ${DESTDIR}${NLSDIR}/${lang}/ee.cat
+.endfor
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud