From 092659f27deebc8e9c971181652f3f6b0ca372f2 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Tue, 15 Jul 2003 15:58:28 +0000 Subject: [PATCH] refined handling of built directories --- doc/Makefile.am | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/doc/Makefile.am b/doc/Makefile.am index f919d88..4e9eb84 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -27,13 +27,11 @@ $(DOC).pdf: $(DOC).sgml $(SGML) $(JW_PATH) -f docbook -b pdf $(DOC).sgml html: $(DOC).sgml $(SGML) - mkdir -p html - $(JW_PATH) -f docbook -b html -o html $(DOC).sgml && touch html + { $(JW_PATH) -f docbook -b html -o html $(DOC).sgml && touch html; } || { $(RM) -r html; exit 1; } ln -sf ../acq-seq.gif html/acq-seq.gif man: $(DOC).sgml $(SGML) - mkdir -p man - -$(JW_PATH) -f docbook -b man -o man $(DOC).sgml && touch man + -{ $(JW_PATH) -f docbook -b man -o man $(DOC).sgml && touch man; } || { $(RM) -r man; exit 1; } funcref.sgml: funcref mkref ./mkref funcref >funcref.sgml -- 2.26.2