Mercurial > hg > early-roguelike
comparison rogue3/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 $(RM) core $(PROGRAM) $(PROGRAM).exe $(DOCS) $(DISTNAME).tar $(DISTNAME).tar.gz | 87 $(RM) core $(PROGRAM) $(PROGRAM).exe $(DOCS) $(DISTNAME).tar $(DISTNAME).tar.gz |
88 $(RM) $(DISTNAME).zip | 88 $(RM) $(DISTNAME).zip |
89 | 89 |
90 docs: $(DOCS) | 90 docs: $(DOCS) |
91 | 91 |
92 $(PROGRAM).doc: rogue.r | 92 $(PROGRAM).doc@DOCS_GROFF@: rogue.r |
93 if test "x$(GROFF)" != "x" ; then \ | 93 $(GROFF) -P-c -P-b -P-u -t -ms -Tutf8 rogue.r > $(PROGRAM).doc |
94 $(GROFF) -P-c -P-b -P-u -t -ms -Tutf8 rogue.r > $(PROGRAM).doc ;\ | 94 |
95 elif test "x$(NROFF)" != "x" && test "x$(TBL)" != "x" && test "x$(COLCRT)" != "x" ; then \ | 95 $(PROGRAM).doc@DOCS_NROFF@: rogue.r |
96 $(TBL) rogue.r | $(NROFF) -ms | $(COLCRT) - > $(PROGRAM).doc ;\ | 96 $(TBL) rogue.r | $(NROFF) -ms | $(COLCRT) - > $(PROGRAM).doc |
97 fi | 97 |
98 | 98 $(PROGRAM).doc@DOCS_NONE@: rogue.r |
99 $(PROGRAM).cat: rogue.6 | 99 @echo "Not building" $(PROGRAM).doc |
100 if test "x$(GROFF)" != "x" ; then \ | 100 |
101 $(GROFF) -P-c -P-b -P-u -Tascii -man rogue.6 > $(PROGRAM).cat ;\ | 101 $(PROGRAM).cat@DOCS_GROFF@: rogue.6 |
102 elif test "x$(NROFF)" != "x" && test "x$(COLCRT)" != "x" ; then \ | 102 $(GROFF) -P-c -P-b -P-u -Tascii -man rogue.6 > $(PROGRAM).cat |
103 $(NROFF) -man rogue.6 | $(COLCRT) - > $(PROGRAM).cat ;\ | 103 |
104 fi | 104 $(PROGRAM).cat@DOCS_NROFF@: rogue.6 |
105 $(NROFF) -man rogue.6 | $(COLCRT) - > $(PROGRAM).cat | |
106 | |
107 $(PROGRAM).cat@DOCS_NONE@: rogue.6 | |
108 @echo "Not building" $(PROGRAM).cat | |
105 | 109 |
106 install: all | 110 install: all |
107 touch test | 111 touch test |
108 if test ! -f $(DESTDIR)$(SCOREFILE) ; then \ | 112 if test ! -f $(DESTDIR)$(SCOREFILE) ; then \ |
109 mkdir -p `dirname $(DESTDIR)$(SCOREFILE)` ; \ | 113 mkdir -p `dirname $(DESTDIR)$(SCOREFILE)` ; \ |