]> git.sur5r.net Git - bacula/docs/blob - docs/Makefile.in
d0d6ac3062635cc7aaeccd7d1fb9894813e04a4f
[bacula/docs] / docs / Makefile.in
1 #
2 @MCOMMON@
3
4 srcdir =        @srcdir@
5 VPATH =         @srcdir@
6 .PATH:          @srcdir@
7 BACULASRC =     @bacula@
8
9 basedir = ..
10 topdir = ..
11 thisdir = docs
12 toolsdir = ./tools
13 TRANSLATE=./htmls.sh
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 image_dirs = images/svg
33 all_dirs = ${de_dirs} ${en_dirs} ${es_dirs} ${fr_dirs} ${image_dirs}
34
35 DIST      = Makefile.in
36
37 #-------------------------------------------------------------------------
38
39 en: all
40
41 all:    pdf-manuals html-manuals
42         @echo ""
43         @echo "All manuals built ..."
44         @echo ""
45         @echo ""
46         @echo ""
47
48 pdf-manuals: templates external-references
49         @echo " "
50         @echo "Generating PDF manuals..."
51         @for I in ${en_dirs}; \
52           do (cd $$I; echo "==>Entering directory `pwd`"; \
53               $(MAKE) pdflatex || (echo ""; echo ""; echo "  ====== Error in `pwd` ======"; \
54                             echo ""; echo ""; exit 1;)); \
55         done
56         @echo ""
57         @echo "All PDF manuals built ..."
58         @echo ""
59         @echo ""
60         @echo ""
61
62 html-manuals: templates external-references
63         @echo " "
64         @echo "Creating Web documentation..."
65         @for I in ${en_dirs}; \
66           do (cd $$I; echo "==>Entering directory `pwd`"; \
67               $(MAKE) web || (echo ""; echo ""; echo "  ====== Error in `pwd` ======"; \
68                             echo ""; echo ""; exit 1;)); \
69         done
70         @(cd $(toolsdir) ; $(TRANSLATE))
71         @echo "Remove links ..."
72         find . -type l -exec rm {} \;
73         @echo ""
74         @echo "All HTML manuals built ..."
75         @echo ""
76         @echo ""
77         @echo ""
78
79
80 templates:
81         @echo " "
82         @echo -n "Linking templates.."
83         @mkdir -p ~/texmf/tex/latex/bsys/
84         @if [ ! -e  ~/texmf/tex/latex/bsys/bsysmanual ] || [ -h ~/texmf/tex/latex/bsys/bsysmanual ]; \
85            then\
86                 ln -sf `pwd`/bsysmanual ~/texmf/tex/latex/bsys/;\
87         fi
88         @echo "Done"
89
90 external-references:
91         @echo " "
92         @echo -n "Building external references file..."
93         @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`/bsysmanual/external-references.tex
94         @for I in ${en_dirs}; \
95           do (cd $$I; echo "==>Entering directory `pwd`"; \
96               $(MAKE) $@ || (echo ""; echo ""; echo "  ====== Error in `pwd` ======"; \
97                             echo ""; echo ""; exit 1;)); \
98         done
99         @echo "All manuals built ..."
100         @echo "External references for all manuals built."
101
102 bacula-web:
103         (cd bacula-web; make)
104
105 fr:     french
106
107 french:
108         @for I in ${fr_dirs}; \
109           do (cd $$I; echo "==>Entering directory `pwd`"; \
110               $(MAKE) all || (echo ""; echo ""; echo "  ====== Error in `pwd` ======"; \
111                             echo ""; echo ""; exit 1;)); \
112         done
113
114 de:     german
115
116 german:
117         @for I in ${de_dirs}; \
118           do (cd $$I; echo "==>Entering directory `pwd`"; \
119               $(MAKE) all || (echo ""; echo ""; echo "  ====== Error in `pwd` ======"; \
120                             echo ""; echo ""; exit 1;)); \
121         done
122
123 es:     spanish
124
125 spanish:
126         @for I in ${es_dirs}; \
127           do (cd $$I; echo "==>Entering directory `pwd`"; \
128               $(MAKE) all || (echo ""; echo ""; echo "  ====== Error in `pwd` ======"; \
129                             echo ""; echo ""; exit 1;)); \
130         done
131
132
133 configure: autoconf/configure.in autoconf/aclocal.m4 autoconf/acconfig.h
134         cd $(srcdir);
135         ${RMF} -f config.cache config.log config.out config.status src/config.h
136         autoconf --prepend-include=$(srcdir)/autoconf \
137             autoconf/configure.in > configure
138         chmod 755 configure
139
140 Makefile: Makefile.in
141         cd $(topdir) \
142             && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
143
144 Makefiles:
145         $(SHELL) config.status
146
147
148 SEDREPLACE = -e 's%@BACULA_VERSION@%$(VERSION)%g;'\
149              -e 's%@BACULA_LSMDATE@%$(LSMDATE)%g;'\
150              -e 's%@BACULA_DATE@%$(DATE)%g;'\
151              -e 's%@BACULA_MAINTEMAIL@%$(MAINTEMAIL)%g;'\
152              -e 's%@BACULA_MAINT@%$(MAINT)%g;'\
153              -e 's%@BACULA_WEBPAGE@%$(WEBPAGE)%g;'\
154              -e 's%@BACULA_WEBMAINTEMAIL@%$(WEBMAINTEMAIL)%g;'\
155              -e 's%@BACULA_WEBMAINT@%$(WEBMAINT)%g;'\
156              -e 's%@BACULA_FTPSITENAME@%$(FTPSITENAME)%g;'\
157              -e 's%@BACULA_FTPSITEDIR@%$(FTPSITEDIR)%g;'
158
159
160 $(basedir)/$(VERNAME).lsm: LSM.in $(srcdir)/../autoconf/Make.common.in $(srcdir)/../src/version.h
161         $(SED) $(SEDREPLACE) < $(srcdir)/LSM.in > $@
162
163 clean:
164         $(RMF) *~ 1 2 3 bacula-doc*.tar.gz
165         (cd bacula-web; make clean)
166         @for I in ${all_dirs}; \
167           do (cd $$I; echo "==>Entering directory `pwd`"; ${MAKE} $@ || exit 1); done
168
169
170 realclean: clean
171
172 distclean: clean
173         $(RMF) Makefile
174         $(RMF) -r CVS html-manual/CVS home-page/CVS techlogs/CVS
175         $(RMF) -rf autom4te.cache bacula-doc-* config.log config.out
176         $(RMF) -f config.status kernsconfig
177         (cd bacula-web; make distclean)
178         @for I in ${all_dirs}; \
179           do (cd $$I; echo "==>Entering directory `pwd`"; ${MAKE} $@ || exit 1); done
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)