xref: /dragonfly/usr.bin/calendar/Makefile (revision 19fe1c42)
1#	@(#)Makefile	8.1 (Berkeley) 6/6/93
2# $FreeBSD: src/usr.bin/calendar/Makefile,v 1.12.8.6 2003/04/06 20:04:56 dwmalone Exp $
3# $DragonFly: src/usr.bin/calendar/Makefile,v 1.6 2007/09/24 21:38:17 pavalos Exp $
4
5PROG=	calendar
6SRCS=   calendar.c io.c day.c ostern.c paskha.c
7INTER=          de_AT.ISO_8859-15 de_DE.ISO8859-1 fr_FR.ISO8859-1 \
8		hr_HR.ISO8859-2 hu_HU.ISO8859-2 ru_RU.KOI8-R uk_UA.KOI8-U
9DE_LINKS=       de_DE.ISO_8859-1 de_DE.ISO8859-15 de_DE.ISO_8859-15
10FR_LINKS=       fr_FR.ISO8859-15
11HR_LINKS=       hr_HR.ISO_8859-2
12TEXTMODE?=	444
13
14beforeinstall:
15	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${TEXTMODE} \
16	    ${.CURDIR}/calendars/calendar.* ${DESTDIR}${SHAREDIR}/calendar
17.for lang in ${INTER}
18	mkdir -p ${DESTDIR}${SHAREDIR}/calendar/${lang}
19	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${TEXTMODE} \
20		${.CURDIR}/calendars/${lang}/calendar.* \
21		${DESTDIR}${SHAREDIR}/calendar/${lang}
22.endfor
23.for link in ${DE_LINKS}
24	rm -rf ${DESTDIR}${SHAREDIR}/calendar/${link}
25	${LN} -s de_DE.ISO8859-1 ${DESTDIR}${SHAREDIR}/calendar/${link}
26.endfor
27.for link in ${FR_LINKS}
28	rm -rf ${DESTDIR}${SHAREDIR}/calendar/${link}
29	${LN} -s fr_FR.ISO8859-1 ${DESTDIR}${SHAREDIR}/calendar/${link}
30.endfor
31.for link in ${HR_LINKS}
32	rm -rf ${DESTDIR}${SHAREDIR}/calendar/${link}
33	${LN} -s hr_HR.ISO8859-2 ${DESTDIR}${SHAREDIR}/calendar/${link}
34.endfor
35
36.include <bsd.prog.mk>
37