117721Speter# $FreeBSD$ 217721Speter 317721SpeterLIB= groff 417721SpeterINTERNALLIB= 517721SpeterSRCS= assert.cpp change_lf.cpp cmap.cpp color.cpp cset.cpp\ 617721Speter device.cpp errarg.cpp error.cpp fatal.cpp filename.cpp\ 717721Speter font.cpp fontfile.cpp geometry.cpp glyphuni.cpp htmlhint.cpp\ 817721Speter hypot.cpp invalid.cpp lf.cpp lineno.cpp macropath.cpp\ 917721Speter maxfilename.cpp mksdir.cpp nametoindex.cpp new.cpp paper.cpp prime.cpp\ 1017721Speter ptable.cpp searchpath.cpp string.cpp strsave.cpp symbol.cpp\ 1117721Speter tmpfile.cpp tmpname.cpp unicode.cpp uniglyph.cpp uniuni.cpp version.cpp 1217721SpeterSRCS+= iftoa.c itoa.c matherr.c progname.c 1317721SpeterCLEANFILES= version.cpp 1417721Speter 1517721Speter.include <bsd.lib.mk> 1617721Speter 1717721Speterversion.cpp: ${GROFF_DIST}/VERSION ${GROFF_DIST}/REVISION 1817721Speter @${ECHO} Making version.cpp 1917721Speter @echo const char \*version_string = \"`cat ${GROFF_DIST}/VERSION`\"\; >$@ 2017721Speter @echo const char \*revision_string = \"`cat ${GROFF_DIST}/REVISION`\"\; >>$@ 2117721Speter @echo extern \"C\" const char \*Version_string = \"`cat ${GROFF_DIST}/VERSION`.`cat ${GROFF_DIST}/REVISION`\"\; | \ 2217721Speter sed -e 's/\.0\"/\"/' >>$@ 2317721Speter