blob: 6ce2b9712e1603d798e3a7c6f0546f7c96a63a21 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# $FreeBSD$
PROG= troff
SRCS= env.cc node.cc input.cc div.cc symbol.cc dictionary.cc reg.cc \
number.cc majorminor.cc
DPADD= ${LIBGROFF} ${LIBM}
LDADD= ${LIBGROFF} -lm
CLEANFILES= majorminor.cc ${MAN}
.include <bsd.prog.mk>
majorminor.cc: ${GROFF_DIST}/VERSION ${GROFF_DIST}/REVISION
@${ECHO} Making $@
@-rm -f $@
@echo const char \*major_version = \
\"`sed -e 's/^\([^.]*\)\..*$$/\1/' ${GROFF_DIST}/VERSION`\"\; >$@
@echo const char \*minor_version = \
\"`sed -e 's/^[^.]*\.\([0-9]*\).*$$/\1/' ${GROFF_DIST}/VERSION`\"\; >>$@
@echo const char \*revision = \"`cat ${GROFF_DIST}/REVISION`\"\; >>$@
|