Mercurial > hg > early-roguelike
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 293:9dcf3344d3fd | 294:fe6b7a1a6dfc |
|---|---|
| 176 $(CC) -s -o scedit vers.o scedit.o scmisc.o mdport.o xcrypt.o -lcurses | 176 $(CC) -s -o scedit vers.o scedit.o scmisc.o mdport.o xcrypt.o -lcurses |
| 177 | 177 |
| 178 scmisc.o scedit.o: | 178 scmisc.o scedit.o: |
| 179 $(CC) -O -c $(SF) $*.c | 179 $(CC) -O -c $(SF) $*.c |
| 180 | 180 |
| 181 $(PROGRAM).doc: rogue.me | 181 $(PROGRAM).doc@DOCS_GROFF@: rogue.me |
| 182 if test "x$(GROFF)" != "x" ; then \ | 182 $(GROFF) -P-c -P-b -P-u -t -me -Tutf8 rogue.me > $(PROGRAM).doc |
| 183 $(GROFF) -P-c -P-b -P-u -t -me -Tutf8 rogue.me > $(PROGRAM).doc ;\ | 183 |
| 184 elif test "x$(NROFF)" != "x" && test "x$(TBL)" != "x" && test "x$(COLCRT)" != "x" ; then \ | 184 $(PROGRAM).doc@DOCS_NROFF@: rogue.me |
| 185 tbl rogue.me | $(NROFF) -me | colcrt - > $(PROGRAM).doc ;\ | 185 $(TBL) rogue.me | $(NROFF) -me | $(COLCRT) - > $(PROGRAM).doc |
| 186 fi | 186 |
| 187 $(PROGRAM).doc@DOCS_NONE@: rogue.me | |
| 188 @echo "Not building" $(PROGRAM).doc | |
| 187 | 189 |
| 188 #$(PROGRAM).html: rogue.me | 190 #$(PROGRAM).html: rogue.me |
| 189 # if test "x$(GROFF)" != "x" ; then \ | 191 # if test "x$(GROFF)" != "x" ; then \ |
| 190 # $(GROFF) -t -me -Thtml -P-l rogue.me > $(PROGRAM).html ;\ | 192 # $(GROFF) -t -me -Thtml -P-l rogue.me > $(PROGRAM).html ;\ |
| 191 # fi | 193 # fi |
| 192 | 194 |
| 193 $(PROGRAM).cat: rogue.6 | 195 $(PROGRAM).cat@DOCS_GROFF@: rogue.6 |
| 194 if test "x$(GROFF)" != "x" ; then \ | 196 $(GROFF) -P-c -P-b -P-u -Tascii -man rogue.6 > $(PROGRAM).cat |
| 195 $(GROFF) -P-c -P-b -P-u -Tascii -man rogue.6 > $(PROGRAM).cat ;\ | 197 |
| 196 elif test "x$(NROFF)" != "x" && test "x$(COLCRT)" != "x" ; then \ | 198 $(PROGRAM).cat@DOCS_NROFF@: rogue.6 |
| 197 $(NROFF) -man rogue.6 | $(COLCRT) - > $(PROGRAM).cat ;\ | 199 $(NROFF) -man rogue.6 | $(COLCRT) - > $(PROGRAM).cat |
| 198 fi | 200 |
| 201 $(PROGRAM).cat@DOCS_NONE@: rogue.6 | |
| 202 @echo "Not building" $(PROGRAM).cat | |
| 199 | 203 |
| 200 dist: clean $(PROGRAM) | 204 dist: clean $(PROGRAM) |
| 201 tar cf $(DISTFILE).tar $(PROGRAM) LICENSE.TXT $(DOCS) | 205 tar cf $(DISTFILE).tar $(PROGRAM) LICENSE.TXT $(DOCS) |
| 202 gzip -f $(DISTFILE).tar | 206 gzip -f $(DISTFILE).tar |
| 203 | 207 |
