comparison arogue7/Makefile.in @ 294:fe6b7a1a6dfc

Improve the documentation build process. The choice between troff implementations is now made at configure time, rather than using shell logic in the Makefile to choose while building.
author John "Elwin" Edwards
date Sat, 30 Dec 2017 14:15:52 -0500
parents 0b3d1b38998f
children
comparison
equal deleted inserted replaced
293:9dcf3344d3fd 294:fe6b7a1a6dfc
87 $(PROGRAM): $(HDRS) $(OBJS) 87 $(PROGRAM): $(HDRS) $(OBJS)
88 $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS) -o $@ 88 $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS) -o $@
89 89
90 docs: $(DOCS) 90 docs: $(DOCS)
91 91
92 $(PROGRAM).doc: aguide.mm 92 $(PROGRAM).doc@DOCS_GROFF@: aguide.mm
93 if test "x$(GROFF)" != "x" ; then \ 93 $(GROFF) -P-c -P-b -P-u -t -mm -Tascii aguide.mm > $(PROGRAM).doc
94 $(GROFF) -P-c -P-b -P-u -t -mm -Tascii aguide.mm > $(PROGRAM).doc ;\ 94
95 elif test "x$(NROFF)" != "x" && test "x$(TBL)" != "x" && test "x$(COLCRT)" != "x" ; then \ 95 $(PROGRAM).doc@DOCS_NROFF@: aguide.mm
96 $(TBL) aguide.mm | $(NROFF) -mm | $(COLCRT) - > $(PROGRAM).doc ;\ 96 $(TBL) aguide.mm | $(NROFF) -mm | $(COLCRT) - > $(PROGRAM).doc
97 fi 97
98 $(PROGRAM).doc@DOCS_NONE@: aguide.mm
99 @echo "Not building" $(PROGRAM).doc
98 100
99 install: all 101 install: all
100 touch test 102 touch test
101 if test ! -f $(DESTDIR)$(SCOREFILE) ; then \ 103 if test ! -f $(DESTDIR)$(SCOREFILE) ; then \
102 mkdir -p `dirname $(DESTDIR)$(SCOREFILE)` ; \ 104 mkdir -p `dirname $(DESTDIR)$(SCOREFILE)` ; \