diff arogue7/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/arogue7/Makefile.in	Fri Dec 29 17:38:08 2017 -0500
+++ b/arogue7/Makefile.in	Sat Dec 30 14:15:52 2017 -0500
@@ -89,12 +89,14 @@
     
 docs: $(DOCS)
 
-$(PROGRAM).doc: aguide.mm
-	if test "x$(GROFF)" != "x" ; then \
-	$(GROFF) -P-c -P-b -P-u -t -mm -Tascii aguide.mm > $(PROGRAM).doc ;\
-	elif test "x$(NROFF)" != "x" && test "x$(TBL)" != "x" && test "x$(COLCRT)" != "x" ; then \
-	$(TBL) aguide.mm | $(NROFF) -mm | $(COLCRT) - > $(PROGRAM).doc ;\
-	fi
+$(PROGRAM).doc@DOCS_GROFF@: aguide.mm
+	$(GROFF) -P-c -P-b -P-u -t -mm -Tascii aguide.mm > $(PROGRAM).doc
+
+$(PROGRAM).doc@DOCS_NROFF@: aguide.mm
+	$(TBL) aguide.mm | $(NROFF) -mm | $(COLCRT) - > $(PROGRAM).doc
+
+$(PROGRAM).doc@DOCS_NONE@: aguide.mm
+	@echo "Not building" $(PROGRAM).doc
 
 install: all
 	touch test