2 #-------------------------------------------------------------------------
6 # Installation target directories & other installation stuff
8 exec_prefix = ${prefix}
11 sbindir = ${exec_prefix}/sbin
12 sysconfdir = ${prefix}/etc
13 scriptdir = @scriptdir@
14 mandir = ${datarootdir}/man/man1
16 datarootdir=${prefix}/share
18 # Tools & program stuff
27 INSTALL = /usr/bin/install -c
28 # add the -s to the following in PRODUCTION mode
29 INSTALL_PROGRAM = /usr/bin/install -c -m @SBINPERM@
30 INSTALL_DATA = /usr/bin/install -c -m 644
31 INSTALL_SCRIPT = /usr/bin/install -c -m @SBINPERM@
32 INSTALL_CONFIG = /usr/bin/install -c -m 640
35 # End of common section of the Makefile
36 #-------------------------------------------------------------------------
41 BACULASRC = /home/kern/bee/bacula/bacula
48 # Distribution variables
51 de_dirs = manuals/de/console manuals/de/developers manuals/de/main \
52 manuals/de/misc manuals/de/problems manuals/de/utility
55 en_dirs = manuals/en/console manuals/en/developers manuals/en/main \
56 manuals/en/misc manuals/en/problems manuals/en/utility
58 es_dirs = manuals/es/console manuals/es/developers manuals/es/main \
59 manuals/es/misc manuals/es/problems manuals/es/utility
61 fr_dirs = manuals/fr/console manuals/fr/developers manuals/fr/main \
62 manuals/fr/misc manuals/fr/problems manuals/fr/utility
64 all_dirs = ${de_dirs} ${en_dirs} ${es_dirs} ${fr_dirs}
66 LANGUAGES= en fr de es
68 #-------------------------------------------------------------------------
73 # @for I in ${en_dirs}; \
74 # do (cd $$I; echo "==>Entering directory `pwd`"; \
75 # $(MAKE) $@ || (echo ""; echo ""; echo " ====== Error in `pwd` ======"; \
76 # echo ""; echo ""; exit 1;)); \
78 # @echo "All manuals built ..."
83 @echo -n "Building external references file..."
84 @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
85 @for I in ${en_dirs}; \
86 do (cd $$I; cp -f ../../version.tex .; cp -f ../../bacula.sty .;); \
88 @for I in ${en_dirs}; \
89 do (cd $$I; echo "==>Entering directory `pwd`"; \
90 $(MAKE) $@ || (echo ""; echo ""; echo " ====== Error in `pwd` ======"; \
91 echo ""; echo ""; exit 1;)); \
93 @echo "External references for all manuals built."
95 pdftex: external-references
97 @for I in ${en_dirs}; \
98 do (cd $$I; cp -f ../../version.tex .; cp -f ../../bacula.sty .; ); \
100 @for I in ${en_dirs}; \
101 do (cd $$I; echo "==>Entering directory `pwd`"; \
102 $(MAKE) $@ || (echo ""; echo ""; echo " ====== Error in `pwd` ======"; \
103 echo ""; echo ""; exit 1;)); \
105 @echo "All manuals built ..."
108 @for I in ${en_dirs}; \
109 do (cd $$I; cp -f ../../version.tex .; cp -f ../../bacula.sty .;); \
111 @for I in ${en_dirs}; \
112 do (cd $$I; echo "==>Entering directory `pwd`"; \
113 $(MAKE) $@ || (echo ""; echo ""; echo " ====== Error in `pwd` ======"; \
114 echo ""; echo ""; exit 1;)); \
116 @(cd tools ; ./htmls.sh)
117 @cp ./images/png/*.png manuals/en/pdf-and-html/images/
118 @cp ./images/*.png manuals/en/pdf-and-html/images/
119 @echo "All manuals built ..."
125 @for I in ${fr_dirs}; do (cd $$I; cp -f ../../version.tex .; cp -f ../../bacula.sty .;); done
126 @for I in ${fr_dirs}; \
127 do (cd $$I; echo "==>Entering directory `pwd`"; \
128 $(MAKE) all || (echo ""; echo ""; echo " ====== Error in `pwd` ======"; \
129 echo ""; echo ""; exit 1;)); \
135 @for I in ${de_dirs}; do (cd $$I; cp -f ../.. .; cp -f ../../bacula.sty .;); done
136 @for I in ${de_dirs}; \
137 do (cd $$I; echo "==>Entering directory `pwd`"; \
138 $(MAKE) all || (echo ""; echo ""; echo " ====== Error in `pwd` ======"; \
139 echo ""; echo ""; exit 1;)); \
145 @for I in ${es_dirs}; do (cd $$I; cp -f ../../version.tex .; cp -f ../../bacula.sty .;); done
146 @for I in ${es_dirs}; \
147 do (cd $$I; echo "==>Entering directory `pwd`"; \
148 $(MAKE) all || (echo ""; echo ""; echo " ====== Error in `pwd` ======"; \
149 echo ""; echo ""; exit 1;)); \
153 $(basedir)/$(VERNAME).lsm: LSM.in $(srcdir)/../autoconf/Make.common.in $(srcdir)/../src/version.h
154 $(SED) $(SEDREPLACE) < $(srcdir)/LSM.in > $@
157 $(RMF) *~ 1 2 3 bacula-doc*.tar.gz
158 find . -type l -exec rm {} \;
159 @for I in ${all_dirs}; \
160 do (cd $$I; echo "==>Entering directory `pwd`"; ${MAKE} $@ || exit 1); done
161 (cd manuals/en/pdf-and-html; $(RMF) -r *.aux *.out *.idx *.toc *.cdx *.ddx *.fdx *.log *.sdx)
164 $(RMF) *~ 1 2 3 bacula-doc*.tar.gz
165 find . -type l -exec rm {} \;
166 @for I in ${all_dirs}; \
167 do (cd $$I; echo "==>Entering directory `pwd`"; ${MAKE} $@ || exit 1); done
172 $(RMF) -r CVS html-manual/CVS home-page/CVS techlogs/CVS
173 $(RMF) -rf autom4te.cache bacula-doc-* config.log config.out
174 $(RMF) -f config.status kernsconfig
175 @for I in ${all_dirs}; \
176 do (cd $$I; echo "==>Entering directory `pwd`"; ${MAKE} $@ || exit 1); done
177 @echo "Removing the HTML directories..."
178 @for L in $(LANGUAGES) ; \
179 do rm -rf manuals/$$L/pdf-and-html ; done
180 @echo "HTML directories removed."
181 @echo "Cleaning the latex directory..."
182 @rm -f latex/external-references
183 @echo "latex directory cleaned up"
189 # $(INSTALL_DATA) bacula.1 $(DESTDIR)$(mandir)/$(manprefix)bacula.$(manext)
192 # -cd $(mandir); $(RMF) $(manprefix)bacula.$(manext)