mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-19 09:44:30 +01:00
9c0dc173cc
specified in the top level Makefiles.
27 lines
803 B
Makefile
27 lines
803 B
Makefile
PROG= troff
|
|
SRCS= env.cc node.cc input.cc div.cc symbol.cc dictionary.cc reg.cc \
|
|
number.cc majorminor.cc
|
|
CFLAGS+= -I${.CURDIR}/../include
|
|
LDADD+= ${LIBGROFF} -lm
|
|
DPADD+= ${LIBGROFF} ${LIBMATH}
|
|
MANDEPEND= troff.1
|
|
|
|
CLEANFILES+= majorminor.cc ${MANDEPEND}
|
|
|
|
majorminor.cc: ${.CURDIR}/../VERSION
|
|
@${ECHO} Making $@
|
|
@-rm -f $@
|
|
@echo const char \*major_version = \
|
|
\"`sed -e 's/^\([^.]*\)\..*$$/\1/' ${.CURDIR}/../VERSION`\"\; >$@
|
|
@echo const char \*minor_version = \
|
|
\"`sed -e 's/^[^.]*\.\([0-9]*\).*$$/\1/' ${.CURDIR}/../VERSION`\"\; >>$@
|
|
|
|
afterinstall:
|
|
${INSTALL} -c -o bin -g bin -m 444 ${.CURDIR}/hyphen.us \
|
|
${DESTDIR}${tmacdir}/hyphen.us
|
|
${INSTALL} -c -o bin -g bin -m 444 ${.CURDIR}/hyphen.us-ru \
|
|
${DESTDIR}${tmacdir}/hyphen.us-ru
|
|
|
|
.include "../Makefile.cfg"
|
|
.include <bsd.prog.mk>
|