Mercurial > hg > early-roguelike
diff rogue5/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 |
line wrap: on
line diff
--- a/rogue5/Makefile.in Fri Dec 29 17:38:08 2017 -0500 +++ b/rogue5/Makefile.in Sat Dec 30 14:15:52 2017 -0500 @@ -178,24 +178,28 @@ scmisc.o scedit.o: $(CC) -O -c $(SF) $*.c -$(PROGRAM).doc: rogue.me - if test "x$(GROFF)" != "x" ; then \ - $(GROFF) -P-c -P-b -P-u -t -me -Tutf8 rogue.me > $(PROGRAM).doc ;\ - elif test "x$(NROFF)" != "x" && test "x$(TBL)" != "x" && test "x$(COLCRT)" != "x" ; then \ - tbl rogue.me | $(NROFF) -me | colcrt - > $(PROGRAM).doc ;\ - fi +$(PROGRAM).doc@DOCS_GROFF@: rogue.me + $(GROFF) -P-c -P-b -P-u -t -me -Tutf8 rogue.me > $(PROGRAM).doc + +$(PROGRAM).doc@DOCS_NROFF@: rogue.me + $(TBL) rogue.me | $(NROFF) -me | $(COLCRT) - > $(PROGRAM).doc + +$(PROGRAM).doc@DOCS_NONE@: rogue.me + @echo "Not building" $(PROGRAM).doc #$(PROGRAM).html: rogue.me # if test "x$(GROFF)" != "x" ; then \ # $(GROFF) -t -me -Thtml -P-l rogue.me > $(PROGRAM).html ;\ # fi -$(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).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 dist: clean $(PROGRAM) tar cf $(DISTFILE).tar $(PROGRAM) LICENSE.TXT $(DOCS)