freebsd-dev/usr.sbin/tzsetup/Makefile
Yuri Pankov 336c4682b6 tzsetup: add baseline file to control parsed zonetab contents
Introduce undocumented option -d to dump parsed zonetab file contents
and add a "baseline" target along with instructions on updating it.

Reviewed by:	philip
Differential Revision:	https://reviews.freebsd.org/D39634
2023-04-23 10:32:02 +02:00

23 lines
380 B
Makefile

# $FreeBSD$
.include <src.opts.mk>
PROG= tzsetup
MAN= tzsetup.8
CFLAGS+= -I.
.if !defined(BOOTSTRAPPING)
WARNS?= 3
CFLAGS+= -I${SRCTOP}/contrib/bsddialog/lib -DHAVE_BSDDIALOG
LIBADD= bsddialog
.endif
ZONETAB= ${SRCTOP}/contrib/tzdata/zone1970.tab
baseline: ${PROG} ${ZONETAB}
${.OBJDIR}/${PROG} -d ${ZONETAB} > ${.CURDIR}/baseline
.PHONY: baseline
.include <bsd.prog.mk>