mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
e646d2895a
unlink gencat(?) target before install, so gencat don't fail if target is readonly and you are not root
22 lines
638 B
Makefile
22 lines
638 B
Makefile
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
|
|
DPADD= ${LIBNCURSES} ${LIBMYTINFO}
|
|
LDADD= -lncurses -lmytinfo
|
|
|
|
LANGS= en_US.ISO_8859-1 fr_FR.ISO_8859-1 de_DE.ISO_8859-1
|
|
|
|
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
|
|
.endfor
|
|
|
|
|
|
.include <bsd.prog.mk>
|