$(DOC)/%.html: %.sgml
echo Creating html for $< to $@
-rm -rf $@
- (HERE=`pwd`; cd $(@D) && debiandoc2html $$HERE/$<)
+ (HERE=`pwd`; cd $(@D) && $(DEBIANDOC_HTML) $(DEBIANDOC_HTML_OPTIONS) $$HERE/$<) || exit 199
# Clean rule
.PHONY: veryclean/html/$(LOCAL)
vpath %.sgml $(SUBDIRS)
$(DOC)/%.text: %.sgml
echo Creating text for $< to $@
- debiandoc2text -O $< > $@
+ $(DEBIANDOC_TEXT) -O $< > $@ || exit 198
# Clean rule
.PHONY: veryclean/text/$(LOCAL)