Makefile revision 4971
1# @(#)Makefile 8.1 (Berkeley) 6/7/93 2 3PROG= mklocale 4SRCS= yacc.c lex.c 5CFLAGS+=-I. 6CLEANFILES+=y.tab.h yacc.c lex.c 7MAN1= mklocale.1 8ISO88591= lt_LN.ISO8859-1 9ISO88591NAMES= da_DK de_DE de_AT de_CH en_GB en_AU en_CA en_US \ 10 es_ES fi_FI fr_FR fr_BE fr_CA fr_CH is_IS it_IT it_CH \ 11 nl_NL nl_BE no_NO pt_PT sv_SE 12LOCALES= ja_JP.EUC ru_SU.KOI8-R ${ISO88591} 13LOCALEDIR= ${DESTDIR}/usr/share/locale 14 15afterinstall: 16 -if [ -d ${LOCALEDIR} ]; then true; else mkdir -p ${LOCALEDIR}; fi 17 for locale in ${LOCALES}; do \ 18 mkdir -p ${LOCALEDIR}/$$locale || true; \ 19 mklocale -o ${LOCALEDIR}/$$locale/LC_CTYPE ${.CURDIR}/data/$$locale; \ 20 chmod ${BINMODE} ${LOCALEDIR}/$$locale; \ 21 done 22 cd ${LOCALEDIR}; for locale in ${ISO88591NAMES}; do \ 23 ln -s ${ISO88591} $$locale.ISO8859-1; \ 24 done 25 chown -R ${BINOWN}.${BINGRP} ${LOCALEDIR} 26 27.include <bsd.prog.mk> 28