blob: a7c5d281f05adf8d31ab5b10bc21a9eefb3f1716 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# $FreeBSD$
LIB= groff
INTERNALLIB= YES
SRCS= assert.cpp change_lf.cpp cmap.cpp color.cpp cset.cpp device.cpp errarg.cpp\
error.cpp fatal.cpp filename.cpp font.cpp fontfile.cpp geometry.cpp\
htmlhint.cpp invalid.cpp lf.cpp lineno.cpp macropath.cpp\
maxfilename.cpp mksdir.cpp nametoindex.cpp new.cpp paper.cpp prime.cpp\
progname.cpp ptable.cpp searchpath.cpp string.cpp strsave.cpp\
tmpfile.cpp tmpname.cpp version.cpp
SRCS+= iftoa.c itoa.c matherr.c
CLEANFILES= version.cpp
.include <bsd.lib.mk>
version.cpp: ${GROFF_DIST}/VERSION ${GROFF_DIST}/REVISION
@${ECHO} Making version.cpp
@echo const char \*version_string = \"`cat ${GROFF_DIST}/VERSION`\"\; >$@
@echo const char \*revision_string = \"`cat ${GROFF_DIST}/REVISION`\"\; >>$@
@echo extern \"C\" const char \*Version_string = \"`cat ${GROFF_DIST}/VERSION`.`cat ${GROFF_DIST}/REVISION`\"\; | \
sed -e 's/\.0\"/\"/' >>$@
|