NetBSD/gnu/usr.bin/groff/troff/Makefile

36 lines
1004 B
Makefile
Raw Normal View History

1993-07-15 20:40:48 +04:00
# Makefile for troff
1993-03-21 12:45:37 +03:00
PROG= troff
1993-07-15 20:40:48 +04:00
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)
CLEANFILES+= majorminor.cc
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`\"\; >>$@
install_data: hyphen.us
-test -d $(datadir) || mkdir $(datadir)
-test -d $(datasubdir) || mkdir $(datasubdir)
-test -d $(tmacdir) || mkdir $(tmacdir)
-rm -f $(tmacdir)/hyphen.us
$(INSTALL_DATA) $(srcdir)/hyphen.us $(tmacdir)/hyphen.us
uninstall_sub:
-rm -f $(tmacdir)/hyphen.us
1993-03-21 12:45:37 +03:00
afterinstall:
1993-07-15 20:40:48 +04:00
install -c -o bin -g bin -m 444 $(.CURDIR)/hyphen.us \
$(DESTDIR)$(tmacdir)/hyphen.us
1993-03-21 12:45:37 +03:00
.include <bsd.prog.mk>
1993-07-15 20:40:48 +04:00
.include "../../Makefile.inc"
.include "../Makefile.cfg"