5 SRCS= assert.cpp change_lf.cpp cmap.cpp color.cpp cset.cpp\
6 device.cpp errarg.cpp error.cpp fatal.cpp filename.cpp\
7 font.cpp fontfile.cpp geometry.cpp glyphuni.cpp htmlhint.cpp\
8 hypot.cpp invalid.cpp lf.cpp lineno.cpp macropath.cpp\
9 maxfilename.cpp mksdir.cpp nametoindex.cpp new.cpp paper.cpp prime.cpp\
10 ptable.cpp searchpath.cpp string.cpp strsave.cpp symbol.cpp\
11 tmpfile.cpp tmpname.cpp unicode.cpp uniglyph.cpp uniuni.cpp version.cpp
12 SRCS+= iftoa.c itoa.c matherr.c progname.c
13 CLEANFILES= version.cpp
17 version.cpp: ${GROFF_DIST}/VERSION ${GROFF_DIST}/REVISION
18 @${ECHO} Making version.cpp
19 @echo const char \*version_string = \"`cat ${GROFF_DIST}/VERSION`\"\; >$@
20 @echo const char \*revision_string = \"`cat ${GROFF_DIST}/REVISION`\"\; >>$@
21 @echo extern \"C\" const char \*Version_string = \"`cat ${GROFF_DIST}/VERSION`.`cat ${GROFF_DIST}/REVISION`\"\; | \
22 sed -e 's/\.0\"/\"/' >>$@