Makefile revision 4970
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 8 9LOCALES= ja_JP.EUC ru_SU.KOI8-R 10ISO88591LOCALES= lt_LN.ISO8859-1 # need more names here 11LOCALEDIR= ${DESTDIR}/usr/share/locale 12 13afterinstall: 14 -if [ -d ${LOCALEDIR} ]; then true; else mkdir -p ${LOCALEDIR}; fi 15 for locale in ${LOCALES}; do \ 16 mkdir -p ${LOCALEDIR}/$$locale || true; \ 17 mklocale -o ${LOCALEDIR}/$$locale/LC_CTYPE ${.CURDIR}/data/$$locale; \ 18 chmod ${BINMODE} ${LOCALEDIR}/$$locale; \ 19 done 20 for locale in ${ISO88591LOCALES}; do \ 21 mkdir -p ${LOCALEDIR}/$$locale || true; \ 22 mklocale -o ${LOCALEDIR}/$$locale/LC_CTYPE ${.CURDIR}/data/iso_8859_1; \ 23 chmod ${BINMODE} ${LOCALEDIR}/$$locale; \ 24 done 25 chown -R ${BINOWN}.${BINGRP} ${LOCALEDIR} 26 27.include <bsd.prog.mk> 28