]> git.sur5r.net Git - bacula/docs/blobdiff - docs/Makefile.in
Tweak bacula.org html meta data
[bacula/docs] / docs / Makefile.in
index 23e3ed921195fe7ce8e843e204c62b4ef21fc06f..43771b19b2bd44e5bbc65c78c79b15f3ea69a364 100644 (file)
@@ -10,27 +10,77 @@ BACULASRC = @bacula@
 
 basedir = ..
 topdir = ..
-thisdir = doc
+thisdir = docs
 
 #
 # Distribution variables
 #
 
+de_dirs = manuals/de/console manuals/de/developers manuals/de/main \
+  manuals/de/misc manuals/de/problems manuals/de/utility
+
+
+en_dirs = manuals/en/console manuals/en/developers manuals/en/main \
+  manuals/en/misc manuals/en/problems manuals/en/utility
+
+es_dirs = manuals/es/console manuals/es/developers manuals/es/main \
+  manuals/es/misc manuals/es/problems manuals/es/utility
+
+fr_dirs = manuals/fr/console manuals/fr/developers manuals/fr/main \
+  manuals/fr/misc manuals/fr/problems manuals/fr/utility
+
+all_dirs = ${de_dirs} ${en_dirs} ${es_dirs} ${fr_dirs}
 
 DIST     = Makefile.in
 
 #-------------------------------------------------------------------------
 
+en: all
+
 all:
-       (cd manual; make)
-       (cd developers; make)
+       @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 ..."
+
+bacula-web:
+       (cd bacula-web; make)
+
+fr:    french
+
+french:
+       @for I in ${fr_dirs}; \
+         do (cd $$I; echo "==>Entering directory `pwd`"; \
+             $(MAKE) all || (echo ""; echo ""; echo "  ====== Error in `pwd` ======"; \
+                           echo ""; echo ""; exit 1;)); \
+       done
 
+de:    german
 
-configure: autoconf/configure.in autoconf/aclocal.m4 autoconf/acconfig.h autoconf/config.h.in
+german:
+       @for I in ${de_dirs}; \
+         do (cd $$I; echo "==>Entering directory `pwd`"; \
+             $(MAKE) all || (echo ""; echo ""; echo "  ====== Error in `pwd` ======"; \
+                           echo ""; echo ""; exit 1;)); \
+       done
+
+es:    spanish
+
+spanish:
+       @for I in ${es_dirs}; \
+         do (cd $$I; echo "==>Entering directory `pwd`"; \
+             $(MAKE) all || (echo ""; echo ""; echo "  ====== Error in `pwd` ======"; \
+                           echo ""; echo ""; exit 1;)); \
+       done
+
+
+configure: autoconf/configure.in autoconf/aclocal.m4 autoconf/acconfig.h
        cd $(srcdir);
        ${RMF} -f config.cache config.log config.out config.status src/config.h
        autoconf --prepend-include=$(srcdir)/autoconf \
-       autoconf/configure.in > configure
+           autoconf/configure.in > configure
        chmod 755 configure
 
 Makefile: Makefile.in
@@ -58,15 +108,29 @@ $(basedir)/$(VERNAME).lsm: LSM.in $(srcdir)/../autoconf/Make.common.in $(srcdir)
 
 clean:
        $(RMF) *~ 1 2 3 bacula-doc*.tar.gz
-       (cd manual; make clean)
-       (cd manual-de; make clean)
-       (cd manual-fr; make clean)
+       (cd bacula-web; make clean)
+       find . -type l -exec rm {} \;
+       @for I in ${all_dirs}; \
+         do (cd $$I; echo "==>Entering directory `pwd`"; ${MAKE} $@ || exit 1); done
+
+mini-clean:
+       $(RMF) *~ 1 2 3 bacula-doc*.tar.gz
+       (cd bacula-web; make clean)
+       find . -type l -exec rm {} \;
+       @for I in ${all_dirs}; \
+         do (cd $$I; echo "==>Entering directory `pwd`"; ${MAKE} $@ || exit 1); done
 
 realclean: clean
 
-distclean:
+distclean: clean
        $(RMF) Makefile
        $(RMF) -r CVS html-manual/CVS home-page/CVS techlogs/CVS
+       $(RMF) -rf autom4te.cache bacula-doc-* config.log config.out
+       $(RMF) -f config.status kernsconfig
+       (cd bacula-web; make distclean)
+       @for I in ${all_dirs}; \
+         do (cd $$I; echo "==>Entering directory `pwd`"; ${MAKE} $@ || exit 1); done
+
 
 devclean:
        $(RMF) Makefile
@@ -78,22 +142,3 @@ install:
 
 uninstall:
 #      -cd $(mandir); $(RMF) $(manprefix)bacula.$(manext)
-
-release:
-       rm -rf bacula-docs-*
-       mkdir -p bacula-docs-$(VERSION)
-       cp -ap manual/bacula bacula-docs-$(VERSION)/web-manual
-       mkdir -p bacula-docs-$(VERSION)/html-manual
-       cp -p manual/bacula.html manual/*.png manual/*.css bacula-docs-$(VERSION)/html-manual/
-       cp -p manual/bacula.pdf bacula-docs-$(VERSION)/
-       cp -p developers/developers.pdf bacula-docs-$(VERSION)/
-       cp -p $(BACULASRC)/kernstodo bacula-docs-$(VERSION)/
-       cp -p $(BACULASRC)/ReleaseNotes bacula-docs-$(VERSION)/
-       cp -p $(BACULASRC)/projects bacula-docs-$(VERSION)/
-       find bacula-rescue-$(VERSION) -name .cvsignore -exec rm -f {} \;
-       find bacula-rescue-$(VERSION) -name CVS -exec rm -rf {} \;
-       tar cvfz bacula-docs-$(VERSION).tar.gz bacula-docs-$(VERSION)
-       rm -rf bacula-docs-$(VERSION)
-       @echo " "
-       @echo "Release document is in: bacula-docs-$(VERSION).tar.gz"
-       @echo " "