all_dirs = ${de_dirs} ${en_dirs} ${es_dirs} ${fr_dirs}
DIST = Makefile.in
+LANGUAGES= en fr de es
#-------------------------------------------------------------------------
-en: all
+#en: pdftex
-all:
+all: pdftex web clean
+# @for I in ${en_dirs}; \
+# do (cd $$I; echo "==>Entering directory `pwd`"; \
+# $(MAKE) $@ || (echo ""; echo ""; echo " ====== Error in `pwd` ======"; \
+# echo ""; echo ""; exit 1;)); \
+# done
+# @echo "All manuals built ..."
+
+
+external-references:
+ @echo " "
+ @echo -n "Building external references file..."
+ @find ${en_dirs} -mindepth 0 -maxdepth 1 -name "*tex" -exec grep -q '\label' {} \; -print| awk -F/ '{ print "\\externaldocument[" $$3 "-]{../"$$3"/"$$4"}"}'|sed -e 's/.tex//g' > `pwd`/latex/external-references.tex
+ @for I in ${en_dirs}; \
+ do (cd $$I; echo "==>Entering directory `pwd`"; \
+ $(MAKE) $@ || (echo ""; echo ""; echo " ====== Error in `pwd` ======"; \
+ echo ""; echo ""; exit 1;)); \
+ done
+ @echo "External references for all manuals built."
+
+pdftex: external-references
@for I in ${en_dirs}; \
do (cd $$I; echo "==>Entering directory `pwd`"; \
$(MAKE) $@ || (echo ""; echo ""; echo " ====== Error in `pwd` ======"; \
done
@echo "All manuals built ..."
+web:
+ @for I in ${en_dirs}; \
+ do (cd $$I; echo "==>Entering directory `pwd`"; \
+ $(MAKE) $@ || (echo ""; echo ""; echo " ====== Error in `pwd` ======"; \
+ echo ""; echo ""; exit 1;)); \
+ done
+ @(cd tools ; ./htmls.sh)
+ @cp ./images/png/borg-logo.png manuals/en/pdf-and-html/images
+ @cp ./images/png/borg-next.png manuals/en/pdf-and-html/images/next.png
+ @cp ./images/png/borg-next_g.png manuals/en/pdf-and-html/images/next_g.png
+ @cp ./images/png/borg-previous.png manuals/en/pdf-and-html/images/prev.png
+ @cp ./images/png/borg-previous_g.png manuals/en/pdf-and-html/images/prev_g.png
+ @cp ./images/png/borg-up.png manuals/en/pdf-and-html/images/up.png
+ @cp ./images/png/borg-up_g.png manuals/en/pdf-and-html/images/up_g.png
+ @cp ./images/png/borg-contents.png manuals/en/pdf-and-html/images/contents.png
+ @cp ./images/png/borg-index.png manuals/en/pdf-and-html/images/index.png
+ @echo "All manuals built ..."
+
+
bacula-web:
(cd bacula-web; make)
(cd bacula-web; make distclean)
@for I in ${all_dirs}; \
do (cd $$I; echo "==>Entering directory `pwd`"; ${MAKE} $@ || exit 1); done
+ @echo "Removing the HTML directories..."
+ @for L in $(LANGUAGES) ; \
+ do rm -rf manuals/$$L/pdf-and-html ; done
+ @echo "HTML directories removed."
+ @echo "Cleaning the latex directory..."
+ @rm -f latex/external-references
+ @echo "latex directory cleaned up"
devclean: