From a2b5e94d242b310807a4e9988cad2a53473a7595 Mon Sep 17 00:00:00 2001 From: Philippe Chauvat Date: Wed, 3 Oct 2012 10:03:28 +0200 Subject: [PATCH] Build external references in the main Makefile --- docs/Makefile.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) -- 2.39.5