]> git.sur5r.net Git - bacula/docs/blob - docs/Makefile.in
Add first cut reorganization
[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 en_dirs = manuals/en/catalog manuals/en/concepts manuals/en/console \
20   manuals/en/developers manuals/en/install manuals/en/problems \
21   manuals/en/utility
22
23 DIST      = Makefile.in
24
25 #-------------------------------------------------------------------------
26
27 all:
28         @for I in ${en_dirs}; \
29           do (cd $$I; echo "==>Entering directory `pwd`"; \
30               $(MAKE) $@ || (echo ""; echo ""; echo "  ====== Error in `pwd` ======"; \
31                             echo ""; echo "";)); \
32         done
33         (cd bacula-web; make)
34         @echo "All manuals built ..."
35
36
37 configure: autoconf/configure.in autoconf/aclocal.m4 autoconf/acconfig.h
38         cd $(srcdir);
39         ${RMF} -f config.cache config.log config.out config.status src/config.h
40         autoconf --prepend-include=$(srcdir)/autoconf \
41             autoconf/configure.in > configure
42         chmod 755 configure
43
44 Makefile: Makefile.in
45         cd $(topdir) \
46             && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
47
48 Makefiles:
49         $(SHELL) config.status
50
51
52 SEDREPLACE = -e 's%@BACULA_VERSION@%$(VERSION)%g;'\
53              -e 's%@BACULA_LSMDATE@%$(LSMDATE)%g;'\
54              -e 's%@BACULA_DATE@%$(DATE)%g;'\
55              -e 's%@BACULA_MAINTEMAIL@%$(MAINTEMAIL)%g;'\
56              -e 's%@BACULA_MAINT@%$(MAINT)%g;'\
57              -e 's%@BACULA_WEBPAGE@%$(WEBPAGE)%g;'\
58              -e 's%@BACULA_WEBMAINTEMAIL@%$(WEBMAINTEMAIL)%g;'\
59              -e 's%@BACULA_WEBMAINT@%$(WEBMAINT)%g;'\
60              -e 's%@BACULA_FTPSITENAME@%$(FTPSITENAME)%g;'\
61              -e 's%@BACULA_FTPSITEDIR@%$(FTPSITEDIR)%g;'
62
63
64 $(basedir)/$(VERNAME).lsm: LSM.in $(srcdir)/../autoconf/Make.common.in $(srcdir)/../src/version.h
65         $(SED) $(SEDREPLACE) < $(srcdir)/LSM.in > $@
66
67 clean:
68         $(RMF) *~ 1 2 3 bacula-doc*.tar.gz
69         (cd manual; make clean)
70         (cd manual-de; make clean)
71         (cd manual-fr; make clean)
72         (cd bacula-web; make clean)
73         @for I in ${en_dirs}; \
74           do (cd $$I; echo "==>Entering directory `pwd`"; ${MAKE} $@ || exit 1); done
75
76
77 realclean: clean
78
79 distclean: clean
80         $(RMF) Makefile
81         $(RMF) -r CVS html-manual/CVS home-page/CVS techlogs/CVS
82         $(RMF) -rf autom4te.cache bacula-doc-* config.log config.out
83         $(RMF) -f config.status kernsconfig
84         (cd manual; make distclean)
85         (cd manual-de; make distclean)
86         (cd manual-fr; make distclean)
87         (cd bacula-web; make distclean)
88         @for I in ${en_dirs}; \
89           do (cd $$I; echo "==>Entering directory `pwd`"; ${MAKE} $@ || exit 1); done
90
91
92 devclean:
93         $(RMF) Makefile
94
95 depend:
96
97 install:
98 #       $(INSTALL_DATA) bacula.1 $(DESTDIR)$(mandir)/$(manprefix)bacula.$(manext)
99
100 uninstall:
101 #       -cd $(mandir); $(RMF) $(manprefix)bacula.$(manext)