From: Philippe Chauvat Date: Wed, 3 Oct 2012 08:03:28 +0000 (+0200) Subject: Build external references in the main Makefile X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a2b5e94d242b310807a4e9988cad2a53473a7595;p=bacula%2Fdocs Build external references in the main Makefile --- diff --git a/docs/Makefile.in b/docs/Makefile.in index b655dcaf..033a1b23 100644 --- a/docs/Makefile.in +++ b/docs/Makefile.in @@ -37,7 +37,7 @@ DIST = Makefile.in en: all -all: templates +all: templates external-references @for I in ${en_dirs}; \ do (cd $$I; echo "==>Entering directory `pwd`"; \ $(MAKE) $@ || (echo ""; echo ""; echo " ====== Error in `pwd` ======"; \ @@ -54,6 +54,11 @@ templates: fi @echo "Done" +external-references: + @echo -n "Building external references file..." + find ${en_dirs} -mindepth 0 -maxdepth 1 -name "*tex" -exec grep -q '\label' {} \; -print| awk -F/ '{ print "\\externalreference[" $$3 "-]{../"$$3"/"$$4"}"}'|sed -e 's/.tex//g' > `pwd`/bsysmanual/external-references.tex + @echo "Done." + bacula-web: (cd bacula-web; make)