comparison urogue/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 aa0eefcd7df6
children
comparison
equal deleted inserted replaced
293:9dcf3344d3fd 294:fe6b7a1a6dfc
151 clean: 151 clean:
152 rm -f $(OBJS) urogue a.out core *.map urogue.exe $(PROGRAM).cat 152 rm -f $(OBJS) urogue a.out core *.map urogue.exe $(PROGRAM).cat
153 153
154 docs: $(DOCS) 154 docs: $(DOCS)
155 155
156 $(PROGRAM).cat: urogue.6 156 $(PROGRAM).cat@DOCS_GROFF@: urogue.6
157 if test "x$(GROFF)" != "x" ; then \ 157 $(GROFF) -P-c -P-b -P-u -Tascii -man urogue.6 > $(PROGRAM).cat
158 $(GROFF) -P-c -P-b -P-u -Tascii -man urogue.6 > $(PROGRAM).cat ;\ 158
159 elif test "x$(NROFF)" != "x" && test "x$(COLCRT)" != "x" ; then \ 159 $(PROGRAM).cat@DOCS_NROFF@: urogue.6
160 $(NROFF) -man urogue.6 | $(COLCRT) - > $(PROGRAM).cat ;\ 160 $(NROFF) -man urogue.6 | $(COLCRT) - > $(PROGRAM).cat
161 fi 161
162 $(PROGRAM).cat@DOCS_NONE@: urogue.6
163 @echo "Not building" $(PROGRAM).cat
162 164
163 install: all 165 install: all
164 touch test 166 touch test
165 if test ! -f $(DESTDIR)$(SCOREFILE) ; then \ 167 if test ! -f $(DESTDIR)$(SCOREFILE) ; then \
166 mkdir -p `dirname $(DESTDIR)$(SCOREFILE)` ; \ 168 mkdir -p `dirname $(DESTDIR)$(SCOREFILE)` ; \