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 calcpp.c 9DPADD= ${LIBM} 10LDADD= -lm 11INTER= de_AT.ISO_8859-15 de_DE.ISO8859-1 fr_FR.ISO8859-1 \ 12 hr_HR.ISO8859-2 hu_HU.ISO8859-2 pt_BR.ISO8859-1 \ 13 pt_BR.UTF-8 ru_RU.KOI8-R ru_RU.UTF-8 uk_UA.KOI8-U 14DE_LINKS= de_DE.ISO8859-15 15FR_LINKS= fr_FR.ISO8859-15 16TEXTMODE?= 444 17 18beforeinstall: 19 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${TEXTMODE} \ 20 ${.CURDIR}/calendars/calendar.* ${DESTDIR}${SHAREDIR}/calendar 21.for lang in ${INTER} 22 ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${TEXTMODE} \ 23 ${.CURDIR}/calendars/${lang}/calendar.* \ 24 ${DESTDIR}${SHAREDIR}/calendar/${lang} 25.endfor 26.for link in ${DE_LINKS} 27 rm -rf ${DESTDIR}${SHAREDIR}/calendar/${link} 28 ln -s de_DE.ISO8859-1 ${DESTDIR}${SHAREDIR}/calendar/${link} 29.endfor 30.for link in ${FR_LINKS} 31 rm -rf ${DESTDIR}${SHAREDIR}/calendar/${link} 32 ln -s fr_FR.ISO8859-1 ${DESTDIR}${SHAREDIR}/calendar/${link} 33.endfor 34 35.if ${MK_TESTS} != "no" 36SUBDIR+= tests 37.endif 38 39.include <bsd.prog.mk> 40