Makefile revision 78048
1# $FreeBSD: head/usr.bin/ee/Makefile 78048 2001-06-11 03:45:33Z ache $ 2 3CFLAGS+= -DCAP -DHAS_NCURSES -DHAS_UNISTD -DHAS_STDARG -DHAS_STDLIB \ 4 -DHAS_CTYPE -DHAS_SYS_IOCTL -DHAS_SYS_WAIT -DSLCT_HDR 5 6PROG= ee 7CFLAGS+=-Wall 8LINKS= ${BINDIR}/ee ${BINDIR}/ree ${BINDIR}/ee ${BINDIR}/edit 9MLINKS= ee.1 ree.1 ee.1 edit.1 10DPADD= ${LIBNCURSES} 11LDADD= -lncurses 12 13LANGS= en_US.US-ASCII fr_FR.ISO8859-1 de_DE.ISO8859-1 pl_PL.ISO8859-2 \ 14 uk_UA.KOI8-U ru_RU.KOI8-R 158859_15_LINKS = fr_FR de_DE 16ENUS_LINKS = ISO8859-1 ISO8859-15 17 18FILES= ${LANGS:S/$/.ee.cat/} 19CLEANFILES+= ${FILES} 20 21all: ${FILES} 22 23.for lang in ${LANGS} 24${lang}.ee.cat: ${.CURDIR}/nls/${lang}/ee.msg 25 gencat -new ${.TARGET} ${.ALLSRC} 26.endfor 27 28beforeinstall: 29.for lang in ${LANGS} 30 ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \ 31 ${lang}.ee.cat ${DESTDIR}${NLSDIR}/${lang}/ee.cat 32.endfor 33.for link in ${ENUS_LINKS} 34 ln -sf ../en_US.US-ASCII/ee.cat \ 35 ${DESTDIR}${NLSDIR}/en_US.${link}/ee.cat 36.endfor 37.for link in ${8859_15_LINKS} 38 ln -sf ../${link}.ISO8859-1/ee.cat \ 39 ${DESTDIR}${NLSDIR}/${link}.ISO8859-15/ee.cat 40.endfor 41 42.include <bsd.prog.mk> 43