]> git.sur5r.net Git - bacula/docs/blob - docs/Makefile.in
Add manuals/bacula.sty
[bacula/docs] / docs / Makefile.in
1 #
2 # $Id$
3 #
4 @MCOMMON@
5
6 srcdir =        @srcdir@
7 VPATH =         @srcdir@
8 .PATH:          @srcdir@
9 BACULASRC =     @bacula@
10
11 basedir = ..
12 topdir = ..
13 thisdir = docs
14
15 #
16 # Distribution variables
17 #
18
19 de_dirs = manuals/de/console manuals/de/developers manuals/de/main \
20   manuals/de/misc manuals/de/problems manuals/de/utility
21
22
23 en_dirs = manuals/en/console manuals/en/developers manuals/en/main \
24   manuals/en/misc manuals/en/problems manuals/en/utility
25
26 es_dirs = manuals/es/console manuals/es/developers manuals/es/main \
27   manuals/es/misc manuals/es/problems manuals/es/utility
28
29 fr_dirs = manuals/fr/console manuals/fr/developers manuals/fr/main \
30   manuals/fr/misc manuals/fr/problems manuals/fr/utility
31
32 all_dirs = ${de_dirs} ${en_dirs} ${es_dirs} ${fr_dirs}
33
34 DIST      = Makefile.in
35 LANGUAGES= en fr de es
36
37 #-------------------------------------------------------------------------
38
39 #en: pdftex
40
41 all: pdftex web clean
42 #       @for I in ${en_dirs}; \
43 #         do (cd $$I; echo "==>Entering directory `pwd`"; \
44 #             $(MAKE) $@ || (echo ""; echo ""; echo "  ====== Error in `pwd` ======"; \
45 #                           echo ""; echo ""; exit 1;)); \
46 #       done
47 #       @echo "All manuals built ..."
48
49
50 external-references:
51         @echo " "
52         @echo -n "Building external references file..."
53         @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
54         @for I in ${en_dirs}; \
55           do (cd $$I; echo "==>Entering directory `pwd`"; \
56               $(MAKE) $@ || (echo ""; echo ""; echo "  ====== Error in `pwd` ======"; \
57                             echo ""; echo ""; exit 1;)); \
58         done
59         @echo "External references for all manuals built."
60
61 pdftex: external-references
62         @for I in ${en_dirs}; \
63           do (cd $$I; echo "==>Entering directory `pwd`"; \
64               $(MAKE) $@ || (echo ""; echo ""; echo "  ====== Error in `pwd` ======"; \
65                             echo ""; echo ""; exit 1;)); \
66         done
67         @echo "All manuals built ..."
68
69 web:
70         @for I in ${en_dirs}; \
71           do (cd $$I; echo "==>Entering directory `pwd`"; \
72               $(MAKE) $@ || (echo ""; echo ""; echo "  ====== Error in `pwd` ======"; \
73                             echo ""; echo ""; exit 1;)); \
74         done
75         @(cd tools ; ./htmls.sh)
76         @cp ./images/png/borg-logo.png manuals/en/pdf-and-html/images
77         @cp ./images/png/borg-next.png manuals/en/pdf-and-html/images/next.png
78         @cp ./images/png/borg-next_g.png manuals/en/pdf-and-html/images/next_g.png
79         @cp ./images/png/borg-previous.png manuals/en/pdf-and-html/images/prev.png
80         @cp ./images/png/borg-previous_g.png manuals/en/pdf-and-html/images/prev_g.png
81         @cp ./images/png/borg-up.png manuals/en/pdf-and-html/images/up.png
82         @cp ./images/png/borg-up_g.png manuals/en/pdf-and-html/images/up_g.png
83         @cp ./images/png/borg-contents.png manuals/en/pdf-and-html/images/contents.png
84         @cp ./images/png/borg-index.png manuals/en/pdf-and-html/images/index.png
85         @echo "All manuals built ..."
86
87
88 bacula-web:
89         (cd bacula-web; make)
90
91 fr:     french
92
93 french:
94         @for I in ${fr_dirs}; \
95           do (cd $$I; echo "==>Entering directory `pwd`"; \
96               $(MAKE) all || (echo ""; echo ""; echo "  ====== Error in `pwd` ======"; \
97                             echo ""; echo ""; exit 1;)); \
98         done
99
100 de:     german
101
102 german:
103         @for I in ${de_dirs}; \
104           do (cd $$I; echo "==>Entering directory `pwd`"; \
105               $(MAKE) all || (echo ""; echo ""; echo "  ====== Error in `pwd` ======"; \
106                             echo ""; echo ""; exit 1;)); \
107         done
108
109 es:     spanish
110
111 spanish:
112         @for I in ${es_dirs}; \
113           do (cd $$I; echo "==>Entering directory `pwd`"; \
114               $(MAKE) all || (echo ""; echo ""; echo "  ====== Error in `pwd` ======"; \
115                             echo ""; echo ""; exit 1;)); \
116         done
117
118
119 configure: autoconf/configure.in autoconf/aclocal.m4 autoconf/acconfig.h
120         cd $(srcdir);
121         ${RMF} -f config.cache config.log config.out config.status src/config.h
122         autoconf --prepend-include=$(srcdir)/autoconf \
123             autoconf/configure.in > configure
124         chmod 755 configure
125
126 Makefile: Makefile.in
127         cd $(topdir) \
128             && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
129
130 Makefiles:
131         $(SHELL) config.status
132
133
134 SEDREPLACE = -e 's%@BACULA_VERSION@%$(VERSION)%g;'\
135              -e 's%@BACULA_LSMDATE@%$(LSMDATE)%g;'\
136              -e 's%@BACULA_DATE@%$(DATE)%g;'\
137              -e 's%@BACULA_MAINTEMAIL@%$(MAINTEMAIL)%g;'\
138              -e 's%@BACULA_MAINT@%$(MAINT)%g;'\
139              -e 's%@BACULA_WEBPAGE@%$(WEBPAGE)%g;'\
140              -e 's%@BACULA_WEBMAINTEMAIL@%$(WEBMAINTEMAIL)%g;'\
141              -e 's%@BACULA_WEBMAINT@%$(WEBMAINT)%g;'\
142              -e 's%@BACULA_FTPSITENAME@%$(FTPSITENAME)%g;'\
143              -e 's%@BACULA_FTPSITEDIR@%$(FTPSITEDIR)%g;'
144
145
146 $(basedir)/$(VERNAME).lsm: LSM.in $(srcdir)/../autoconf/Make.common.in $(srcdir)/../src/version.h
147         $(SED) $(SEDREPLACE) < $(srcdir)/LSM.in > $@
148
149 clean:
150         $(RMF) *~ 1 2 3 bacula-doc*.tar.gz
151         (cd bacula-web; make clean)
152         find . -type l -exec rm {} \;
153         @for I in ${all_dirs}; \
154           do (cd $$I; echo "==>Entering directory `pwd`"; ${MAKE} $@ || exit 1); done
155
156 mini-clean:
157         $(RMF) *~ 1 2 3 bacula-doc*.tar.gz
158         (cd bacula-web; make clean)
159         find . -type l -exec rm {} \;
160         @for I in ${all_dirs}; \
161           do (cd $$I; echo "==>Entering directory `pwd`"; ${MAKE} $@ || exit 1); done
162
163 realclean: clean
164
165 distclean: clean
166         $(RMF) Makefile
167         $(RMF) -r CVS html-manual/CVS home-page/CVS techlogs/CVS
168         $(RMF) -rf autom4te.cache bacula-doc-* config.log config.out
169         $(RMF) -f config.status kernsconfig
170         (cd bacula-web; make distclean)
171         @for I in ${all_dirs}; \
172           do (cd $$I; echo "==>Entering directory `pwd`"; ${MAKE} $@ || exit 1); done
173         @echo "Removing the HTML directories..."
174         @for L in $(LANGUAGES) ; \
175         do rm -rf manuals/$$L/pdf-and-html ; done
176         @echo "HTML directories removed."
177         @echo "Cleaning the latex directory..."
178         @rm -f latex/external-references
179         @echo "latex directory cleaned up"
180
181
182 devclean:
183         $(RMF) Makefile
184
185 depend:
186
187 install:
188 #       $(INSTALL_DATA) bacula.1 $(DESTDIR)$(mandir)/$(manprefix)bacula.$(manext)
189
190 uninstall:
191 #       -cd $(mandir); $(RMF) $(manprefix)bacula.$(manext)