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.
This commit is contained in:
parent
7fac45d848
commit
bb37c1c3f7
12 changed files with 180 additions and 54 deletions
|
|
@ -89,19 +89,23 @@ clean:
|
|||
|
||||
docs: $(DOCS)
|
||||
|
||||
$(PROGRAM).doc: rogue.r
|
||||
if test "x$(GROFF)" != "x" ; then \
|
||||
$(GROFF) -P-c -P-b -P-u -t -ms -Tutf8 rogue.r > $(PROGRAM).doc ;\
|
||||
elif test "x$(NROFF)" != "x" && test "x$(TBL)" != "x" && test "x$(COLCRT)" != "x" ; then \
|
||||
$(TBL) rogue.r | $(NROFF) -ms | $(COLCRT) - > $(PROGRAM).doc ;\
|
||||
fi
|
||||
$(PROGRAM).doc@DOCS_GROFF@: rogue.r
|
||||
$(GROFF) -P-c -P-b -P-u -t -ms -Tutf8 rogue.r > $(PROGRAM).doc
|
||||
|
||||
$(PROGRAM).cat: rogue.6
|
||||
if test "x$(GROFF)" != "x" ; then \
|
||||
$(GROFF) -P-c -P-b -P-u -Tascii -man rogue.6 > $(PROGRAM).cat ;\
|
||||
elif test "x$(NROFF)" != "x" && test "x$(COLCRT)" != "x" ; then \
|
||||
$(NROFF) -man rogue.6 | $(COLCRT) - > $(PROGRAM).cat ;\
|
||||
fi
|
||||
$(PROGRAM).doc@DOCS_NROFF@: rogue.r
|
||||
$(TBL) rogue.r | $(NROFF) -ms | $(COLCRT) - > $(PROGRAM).doc
|
||||
|
||||
$(PROGRAM).doc@DOCS_NONE@: rogue.r
|
||||
@echo "Not building" $(PROGRAM).doc
|
||||
|
||||
$(PROGRAM).cat@DOCS_GROFF@: rogue.6
|
||||
$(GROFF) -P-c -P-b -P-u -Tascii -man rogue.6 > $(PROGRAM).cat
|
||||
|
||||
$(PROGRAM).cat@DOCS_NROFF@: rogue.6
|
||||
$(NROFF) -man rogue.6 | $(COLCRT) - > $(PROGRAM).cat
|
||||
|
||||
$(PROGRAM).cat@DOCS_NONE@: rogue.6
|
||||
@echo "Not building" $(PROGRAM).cat
|
||||
|
||||
install: all
|
||||
touch test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue