]> git.sur5r.net Git - bacula/docs/blobdiff - docs/Makefile.in
Add manuals/bacula.sty
[bacula/docs] / docs / Makefile.in
index 43771b19b2bd44e5bbc65c78c79b15f3ea69a364..cb5640634782b78196d630904df408977c3e8aad 100644 (file)
@@ -32,12 +32,33 @@ fr_dirs = manuals/fr/console manuals/fr/developers manuals/fr/main \
 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` ======"; \
@@ -45,6 +66,25 @@ all:
        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)
 
@@ -130,6 +170,13 @@ distclean: clean
        (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: