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} -o ${BINOWN} -g ${BINGRP} -m ${TEXTMODE} \ 19 ${.CURDIR}/calendars/calendar.* ${DESTDIR}${SHAREDIR}/calendar 20.for lang in ${INTER} 21 ${INSTALL} -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 ln -s de_DE.ISO8859-1 ${DESTDIR}${SHAREDIR}/calendar/${link} 28.endfor 29.for link in ${FR_LINKS} 30 rm -rf ${DESTDIR}${SHAREDIR}/calendar/${link} 31 ln -s fr_FR.ISO8859-1 ${DESTDIR}${SHAREDIR}/calendar/${link} 32.endfor 33 34.if ${MK_TESTS} != "no" 35SUBDIR+= tests 36.endif 37 38.include <bsd.prog.mk> 39