Mercurial > hg > early-roguelike
comparison srogue/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 |
---|---|
76 rm -f $(OBJS) core | 76 rm -f $(OBJS) core |
77 rm -f $(PROGRAM) $(PROGRAM).exe $(PROGRAM) $(PROGRAM).exe $(PROGRAM).tar $(PROGRAM).tar.gz $(DOCS) | 77 rm -f $(PROGRAM) $(PROGRAM).exe $(PROGRAM) $(PROGRAM).exe $(PROGRAM).tar $(PROGRAM).tar.gz $(DOCS) |
78 | 78 |
79 docs: $(DOCS) | 79 docs: $(DOCS) |
80 | 80 |
81 $(PROGRAM).doc: rogue.nr | 81 $(PROGRAM).doc@DOCS_GROFF@: rogue.nr |
82 if test "x$(GROFF)" != "x" ; then \ | 82 $(GROFF) -P-c -P-b -P-u -t -mm -Tascii rogue.nr >$(PROGRAM).doc |
83 $(GROFF) -P-c -P-b -P-u -t -mm -Tascii rogue.nr >$(PROGRAM).doc ;\ | 83 |
84 elif test "x$(NROFF)" != "x" && test "x$(TBL)" != "x" && test "x$(COLCRT)" != "x" ; then \ | 84 $(PROGRAM).doc@DOCS_NROFF@: rogue.nr |
85 $(TBL) rogue.nr | $(NROFF) -mm | $(COLCRT) - > $(PROGRAM).doc ;\ | 85 $(TBL) rogue.nr | $(NROFF) -mm | $(COLCRT) - > $(PROGRAM).doc |
86 fi | 86 |
87 $(PROGRAM).doc@DOCS_NONE@: rogue.nr | |
88 @echo "Not building" $(PROGRAM).doc | |
87 | 89 |
88 install: all | 90 install: all |
89 touch test | 91 touch test |
90 if test ! -f $(DESTDIR)$(SCOREFILE) ; then \ | 92 if test ! -f $(DESTDIR)$(SCOREFILE) ; then \ |
91 mkdir -p `dirname $(DESTDIR)$(SCOREFILE)` ; \ | 93 mkdir -p `dirname $(DESTDIR)$(SCOREFILE)` ; \ |