Mercurial > hg > early-roguelike
diff 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 |
line wrap: on
line diff
--- a/urogue/Makefile.in Fri Dec 29 17:38:08 2017 -0500 +++ b/urogue/Makefile.in Sat Dec 30 14:15:52 2017 -0500 @@ -153,12 +153,14 @@ docs: $(DOCS) -$(PROGRAM).cat: urogue.6 - if test "x$(GROFF)" != "x" ; then \ - $(GROFF) -P-c -P-b -P-u -Tascii -man urogue.6 > $(PROGRAM).cat ;\ - elif test "x$(NROFF)" != "x" && test "x$(COLCRT)" != "x" ; then \ - $(NROFF) -man urogue.6 | $(COLCRT) - > $(PROGRAM).cat ;\ - fi +$(PROGRAM).cat@DOCS_GROFF@: urogue.6 + $(GROFF) -P-c -P-b -P-u -Tascii -man urogue.6 > $(PROGRAM).cat + +$(PROGRAM).cat@DOCS_NROFF@: urogue.6 + $(NROFF) -man urogue.6 | $(COLCRT) - > $(PROGRAM).cat + +$(PROGRAM).cat@DOCS_NONE@: urogue.6 + @echo "Not building" $(PROGRAM).cat install: all touch test