Skip to contentSkip to conversation

add warning DocBook/Makefile

PATCH New maximilian attems 1 participant 1 message Oct 9, 2003 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 add warning DocBook/Makefile

fixes the following error message,
when transfig - utilities for converting XFig figure files - is not installed:

/bin/sh: fig2dev: command not found
make[1]: *** [Documentation/DocBook/parport-share.eps] Error 127
make: *** [pdfdocs] Error 2

please apply
ma(ks|x(imilian)?)

Documentation/DocBook/Makefile +6 -0
@@ -149,12 +149,18 @@
       cmd_fig2eps = fig2dev -Leps $< $@
 
 %.eps: %.fig
+	@(which fig2dev > /dev/null 2>&1) || \
+	 (echo "*** You need to install transfig ***"; \
+	  exit 1)
 	$(call cmd,fig2eps)
 
 quiet_cmd_fig2png = FIG2PNG $@
       cmd_fig2png = fig2dev -Lpng $< $@
 
 %.png: %.fig
+	@(which fig2dev > /dev/null 2>&1) || \
+	 (echo "*** You need to install transfig ***"; \
+	  exit 1)
 	$(call cmd,fig2png)
 
 ###