Browse code

Makefiles: Updated Makefiles to use db2x_docbook2man when docbook2x-man is not installed

- db2x_docbook2man is what Fedora contains

Peter Dunkley authored on 20/10/2012 00:23:51
Showing 3 changed files
... ...
@@ -295,7 +295,7 @@ endif
295 295
 ifneq (,$(wildcard $(MOD_NAME).xml))
296 296
 
297 297
 $(MOD_NAME).7: $(MOD_NAME).xml
298
-	docbook2x-man -s ../../doc/stylesheets/serdoc2man.xsl $<
298
+	$(DOCBOOK) -s ../../doc/stylesheets/serdoc2man.xsl $<
299 299
 
300 300
 man: $(MOD_NAME).7
301 301
 
... ...
@@ -42,3 +42,8 @@ sh_err_fail=
42 42
 try_err=$(1) ; if [ $$? != 0 ]; then echo ERROR: $(1) failed ; fi
43 43
 endif
44 44
 
45
+DOCBOOK = $(shell which docbook2x-man 2>/dev/null)
46
+ifeq ($(DOCBOOK),)
47
+	DOCBOOK = $(shell which db2x_docbook2man 2>/dev/null)
48
+endif
49
+
... ...
@@ -123,7 +123,7 @@ endif
123 123
 ifneq (,$(wildcard $(UTIL_NAME).xml))
124 124
 
125 125
 $(UTIL_NAME).7: $(UTIL_NAME).xml
126
-	docbook2x-man -s ../../doc/stylesheets/serdoc2man.xsl $<
126
+	$(DOCBOOK) -s ../../doc/stylesheets/serdoc2man.xsl $<
127 127
 
128 128
 man: $(UTIL_NAME).7
129 129