1# @(#)Makefile 8.1 (Berkeley) 6/6/93 2# $FreeBSD$ 3 4.include <src.opts.mk> 5 6PROG= calendar 7SRCS= calendar.c locale.c events.c dates.c parsedata.c io.c day.c \ 8 ostern.c paskha.c pom.c sunpos.c 9LIBADD= m 10INTER= de_AT.ISO_8859-15 de_DE.ISO8859-1 fr_FR.ISO8859-1 \ 11 hr_HR.ISO8859-2 hu_HU.ISO8859-2 pt_BR.ISO8859-1 \ 12 pt_BR.UTF-8 ru_RU.KOI8-R ru_RU.UTF-8 uk_UA.KOI8-U 13DE_LINKS= de_DE.ISO8859-15 14FR_LINKS= fr_FR.ISO8859-15 15TEXTMODE?= 444 16 17beforeinstall: 18 ${INSTALL} ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m ${TEXTMODE} \ 19 ${.CURDIR}/calendars/calendar.* ${DESTDIR}${SHAREDIR}/calendar 20.for lang in ${INTER} 21 ${INSTALL} ${TAG_ARGS} -o ${BINOWN} -g ${BINGRP} -m ${TEXTMODE} \ 22 ${.CURDIR}/calendars/${lang}/calendar.* \ 23 ${DESTDIR}${SHAREDIR}/calendar/${lang} 24.endfor 25.for link in ${DE_LINKS} 26 rm -rf ${DESTDIR}${SHAREDIR}/calendar/${link} 27 ${INSTALL} ${TAG_ARGS} -l s de_DE.ISO8859-1 \ 28 ${DESTDIR}${SHAREDIR}/calendar/${link} 29.endfor 30.for link in ${FR_LINKS} 31 rm -rf ${DESTDIR}${SHAREDIR}/calendar/${link} 32 ${INSTALL} ${TAG_ARGS} -l s fr_FR.ISO8859-1 \ 33 ${DESTDIR}${SHAREDIR}/calendar/${link} 34.endfor 35 36.if ${MK_TESTS} != "no" 37SUBDIR+= tests 38.endif 39 40.include <bsd.prog.mk> 41