Don't use .Xo/.Xc. Fix date format.
[netbsd-mini2440.git] / gnu / usr.bin / groff / src / roff / troff / Makefile
blobd9a0ceac82b9714b9fe0162a911ee635037de85b
1 # $NetBSD: Makefile,v 1.9 2008/02/26 03:20:07 lukem Exp $
3 # $FreeBSD: src/gnu/usr.bin/groff/src/roff/troff/Makefile,v 1.4 2003/05/01 13:22:20 ru Exp $
5 DIST_SUBDIR= src/roff/troff
7 PROG= troff
8 SRCS= dictionary.cpp div.cpp env.cpp input.cpp \
9 majorminor.cpp mtsm.cpp node.cpp number.cpp reg.cpp
10 DPADD+= ${LIBGROFF} ${LIBM} ${LIBSUPCXX}
11 LDADD+= ${LIBGROFF} -lm -lsupc++
12 CLEANFILES= majorminor.cpp ${MAN}
13 USETBL=
15 .include <bsd.prog.mk>
17 majorminor.cpp: ${GROFF_DIST}/VERSION ${GROFF_DIST}/REVISION
18 ${_MKTARGET_CREATE}
20 maj=`${TOOL_SED} -e 's/^\([^.]*\)\..*$$/\1/' \
21 ${GROFF_DIST}/VERSION` ;\
22 min=`${TOOL_SED} -e 's/^[^.]*\.\([0-9]*\).*$$/\1/' \
23 ${GROFF_DIST}/VERSION` ;\
24 r=`cat ${GROFF_DIST}/REVISION` ;\
25 echo 'const char *major_version = "'$$maj'";' ;\
26 echo 'const char *minor_version = "'$$min'";' ;\
27 echo 'const char *revision = "'$$r'";' ;\
28 ) > ${.TARGET}