8686 loader.efi: replace comconsole_speed with ttya-mode
[unleashed.git] / bin / zic / Makefile
blob6812932a4d59dd805ba07fa30aa9794a7325fb4e
1 PROG= zic
2 SRCS= zic.c
3 MAN= zic.8
5 BINDIR= /usr/sbin
7 CONTRIB_PATH = ${.CURDIR:H:H}/contrib/tzcode
9 VERSION!=cat ${CONTRIB_PATH}/version
11 .PATH: ${CONTRIB_PATH}
13 CPPFLAGS+= -I${CONTRIB_PATH}
14 CPPFLAGS+= -I.
15 CPPFLAGS+= -DTZDIR='"/usr/share/lib/zoneinfo"'
17 version.h:
18 printf '%s\n' \
19 'static char const PKGVERSION[]="(tzcode) ";' \
20 "static char const TZVERSION[]=\"$$VERSION\";" \
21 'static char const REPORT_BUGS_TO[]="tz@iana.org";' \
22 >$@.out
23 mv $@.out $@
25 ${.CURDIR}/zic.8: ${CONTRIB_PATH}/zic.8
26 sed \
27 -e 's@/usr/local/etc@/usr/share/lib@' \
28 -e 's@, zdump(8)@@' \
29 < ${.ALLSRC} > $@
31 # FIXME: This is a gross hack to generate a cleaner version of the manpage
32 # in the current directory so that the install target finds it and installs
33 # it.
34 all: ${.CURDIR}/zic.8
36 CLEANFILES+= version.h zic.8
38 zic.o: version.h
40 .include <unleashed.mk>
41 .include <prog.mk>