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` ======"; \
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)