Mercurial > hg > early-roguelike
comparison rogue4/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 |
---|---|
109 prob.o: prob.c rogue.h | 109 prob.o: prob.c rogue.h |
110 $(CC) -O -c prob.c | 110 $(CC) -O -c prob.c |
111 | 111 |
112 docs: $(DOCS) | 112 docs: $(DOCS) |
113 | 113 |
114 $(PROGRAM).cat: rogue.6 | 114 $(PROGRAM).cat@DOCS_GROFF@: rogue.6 |
115 if test "x$(GROFF)" != "x" ; then \ | 115 $(GROFF) -P-c -P-b -P-u -Tascii -man rogue.6 > $(PROGRAM).cat |
116 $(GROFF) -P-c -P-b -P-u -Tascii -man rogue.6 > $(PROGRAM).cat ;\ | 116 |
117 elif test "x$(NROFF)" != "x" && test "x$(COLCRT)" != "x" ; then \ | 117 $(PROGRAM).cat@DOCS_NROFF@: rogue.6 |
118 $(NROFF) -man rogue.6 | colcrt - > $(PROGRAM).cat ;\ | 118 $(NROFF) -man rogue.6 | $(COLCRT) - > $(PROGRAM).cat |
119 fi | 119 |
120 | 120 $(PROGRAM).cat@DOCS_NONE@: rogue.6 |
121 $(PROGRAM).doc: rogue.me | 121 @echo "Not building" $(PROGRAM).cat |
122 if test "x$(GROFF)" != "x" ; then \ | 122 |
123 $(GROFF) -P-c -P-b -P-u -t -me -Tutf8 rogue.me > $(PROGRAM).doc ;\ | 123 $(PROGRAM).doc@DOCS_GROFF@: rogue.me |
124 elif test "x$(NROFF)" != "x" && test "x$(COLCRT)" != "x" && test "x$(TBL)" != "x" ; then \ | 124 $(GROFF) -P-c -P-b -P-u -t -me -Tutf8 rogue.me > $(PROGRAM).doc |
125 $(TBL) rogue.me | $(NROFF) -me | $(COLCRT) - > $(PROGRAM).doc ;\ | 125 |
126 fi | 126 $(PROGRAM).doc@DOCS_NROFF@: rogue.me |
127 $(TBL) rogue.me | $(NROFF) -me | $(COLCRT) - > $(PROGRAM).doc | |
128 | |
129 $(PROGRAM).doc@DOCS_NONE@: rogue.me | |
130 @echo "Not building" $(PROGRAM).doc | |
127 | 131 |
128 clean: | 132 clean: |
129 rm -f $(POBJS) $(OBJS) core a.out p.out $(PROGRAM) strings make.out rogue.tar vgrind.* x.c x.o xs.c xs.o linterrs findpw distmod.o xs.po xstr rogue rogue.exe rogue.tar.gz $(DOCS) xstr.exe | 133 rm -f $(POBJS) $(OBJS) core a.out p.out $(PROGRAM) strings make.out rogue.tar vgrind.* x.c x.o xs.c xs.o linterrs findpw distmod.o xs.po xstr rogue rogue.exe rogue.tar.gz $(DOCS) xstr.exe |
130 | 134 |
131 maintainer-clean: | 135 maintainer-clean: |