mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-30 15:38:06 +01:00
f465987999
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.
28 lines
669 B
Makefile
28 lines
669 B
Makefile
CFLAGS+= -DCAP -DHAS_NCURSES -DHAS_UNISTD -DHAS_STDARG -DHAS_STDLIB \
|
|
-DHAS_CTYPE -DHAS_SYS_IOCTL -DHAS_SYS_WAIT -DSLCT_HDR
|
|
|
|
PROG= ee
|
|
LINKS= ${BINDIR}/ee ${BINDIR}/ree
|
|
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}
|
|
|
|
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>
|