Makefile revision 100872
1262569Simp#	@(#)Makefile	8.1 (Berkeley) 6/6/93
2262569Simp# $FreeBSD: head/usr.bin/calendar/Makefile 100872 2002-07-29 09:40:17Z ru $
3262569Simp
4262569SimpPROG=	calendar
5262569SimpSRCS=   calendar.c io.c day.c ostern.c paskha.c
6262569SimpNO_WERROR=	yes
7262569SimpINTER=          de_DE.ISO8859-1 fr_FR.ISO8859-1 hr_HR.ISO8859-2 ru_RU.KOI8-R
8262569SimpDE_LINKS=       de_DE.ISO_8859-1 de_DE.ISO8859-15 de_DE.ISO_8859-15
9262569SimpFR_LINKS=       fr_FR.ISO8859-15
10262569SimpHR_LINKS=       hr_HR.ISO_8859-2
11262569SimpTEXTMODE?=	444
12262569Simp
13270864Simpbeforeinstall:
14262569Simp	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${TEXTMODE} \
15262569Simp	    ${.CURDIR}/calendars/calendar.* ${DESTDIR}${SHAREDIR}/calendar
16270864Simp.for lang in ${INTER}
17262569Simp	mkdir -p ${DESTDIR}${SHAREDIR}/calendar/${lang}
18262569Simp	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${TEXTMODE} \
19262569Simp		${.CURDIR}/calendars/${lang}/calendar.* \
20262569Simp		${DESTDIR}${SHAREDIR}/calendar/${lang} 
21262569Simp.endfor
22262569Simp.for link in ${DE_LINKS}
23	rm -rf ${DESTDIR}${SHAREDIR}/calendar/${link}
24	ln -s de_DE.ISO8859-1 ${DESTDIR}${SHAREDIR}/calendar/${link}
25.endfor
26.for link in ${FR_LINKS}
27	rm -rf ${DESTDIR}${SHAREDIR}/calendar/${link}
28	ln -s fr_FR.ISO8859-1 ${DESTDIR}${SHAREDIR}/calendar/${link}
29.endfor
30.for link in ${HR_LINKS}
31	rm -rf ${DESTDIR}${SHAREDIR}/calendar/${link}
32	ln -s hr_HR.ISO8859-2 ${DESTDIR}${SHAREDIR}/calendar/${link}
33.endfor
34
35.include <bsd.prog.mk>
36