]> git.sur5r.net Git - bacula/bacula/blob - bacula/Makefile.in
Finish JobDefs implementation + fix Makefile.in cats directory scripts
[bacula/bacula] / bacula / Makefile.in
1
2 # Version $Id$
3
4 @MCOMMON@
5
6 working_dir=@working_dir@
7
8 srcdir =        @srcdir@
9 VPATH =         @srcdir@
10 .PATH:          @srcdir@
11 topdir = .
12 thisdir = .
13
14
15 first_rule: all
16 dummy:
17
18 fd_subdirs = src scripts doc src/lib src/findlib src/filed \
19              rescue rescue/linux
20
21
22 subdirs =    src/cats @READLINE_SRC@ src/console src/dird \
23              src/stored @GNOME_DIR@ src/tools
24
25 all_subdirs = ${fd_subdirs} ${@ALL_DIRS@}
26
27 DIST =  INSTALL README.configure configure Makefile Makefile.in ChangeLog
28
29 DIST_CFG = autoconf/aclocal.m4 autoconf/configure.in \
30         autoconf/config.h.in  autoconf/acconfig.h  autoconf/Make.common.in \
31         autoconf/install-sh autoconf/mkinstalldirs
32
33 MKDIR = $(srcdir)/autoconf/mkinstalldirs
34
35 #-------------------------------------------------------------------------
36
37 all: Makefile
38         @for I in ${all_subdirs}; \
39           do (cd $$I; echo "==>Entering directory `pwd`"; \
40               $(MAKE) $@ || (echo ""; echo ""; echo -e "  \a\a ====== Error in `pwd` ======\a\a"; \
41                             echo ""; echo "";)); \
42         done
43
44 depend:
45         @for I in ${all_subdirs}; \
46           do (cd $$I; echo "==>Entering directory `pwd`"; $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1); done
47         
48 bacula-fd: Makefile        
49         @for I in ${fd_subdirs}; \
50           do (cd $$I; echo "==>Entering directory `pwd`"; \
51               $(MAKE) all || (echo ""; echo ""; echo -e "  \a\a ====== Error in `pwd` ======\a\a"; \
52                             echo ""; echo "";)); \
53         done
54
55 #-------------------------------------------------------------------------
56 configure: autoconf/configure.in autoconf/aclocal.m4 autoconf/acconfig.h autoconf/config.h.in
57         cd $(srcdir);
58         autoconf --prepend-include=$(srcdir)/autoconf \
59         autoconf/configure.in > configure
60         chmod 755 configure
61         @rm -f config.cache
62
63 old-configure: autoconf/configure.in autoconf/aclocal.m4 autoconf/acconfig.h
64         cd $(srcdir);
65         autoconf --include=$(srcdir)/autoconf \
66         autoconf/configure.in > configure
67         chmod 755 configure
68         @rm -f config.cache
69
70 config.status:
71         if test -x config.status; then config.status --recheck; \
72         else $(SHELL) configure; fi
73
74 autoconf/config.h.in: autoconf/configure.in autoconf/acconfig.h
75         cd $(srcdir);
76         autoheader --prepend-include=$(srcdir)/autoconf \
77         autoconf/configure.in > autoconf/config.h.in
78         chmod 644 autoconf/config.h.in
79
80 installdirs:
81         $(MKDIR) $(DESTDIR)$(sbindir)
82         $(MKDIR) $(DESTDIR)$(sysconfdir)
83         $(MKDIR) $(DESTDIR)$(scriptdir)
84         $(MKDIR) $(DESTDIR)$(working_dir)
85 #       $(MKDIR) $(DESTDIR)$(mandir)
86
87 install: installdirs
88         @for I in $(all_subdirs); do (cd $$I; $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1); done
89
90 uninstall:
91         @for I in $(all_subdirs); do (cd $$I; $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1); done
92
93 install-autostart: install-autostart-dir install-autostart-fd install-autostart-sd
94
95 install-autostart-dir:
96         (cd platforms; $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1) 
97
98 install-autostart-fd:
99         (cd platforms; $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1) 
100
101 install-autostart-sd:
102         (cd platforms; $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1) 
103
104 uninstall-autostart: uninstall-autostart-dir uninstall-autostart-fd uninstall-autrun-sd
105
106 uninstall-autostart-dir:
107         (cd platforms; $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1)
108
109 uninstall-autostart-fd:
110         (cd platforms; $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1)
111
112 uninstall-autostart-sd:
113         (cd platforms; $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1)
114
115 Makefile: Makefile.in
116         cd $(topdir) \
117             && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
118
119 Makefiles:
120         $(SHELL) config.status
121         (cd scripts; \
122         chmod 755 startmysql stopmysql bacula fd startit stopit btraceback; \
123         chmod 755 mtx-changer bconsole gconsole)
124
125         (cd src/cats; \
126         chmod 755 create_bacula_database      update_bacula_tables     make_bacula_tables; \
127         chmod 755 grant_bacula_privileges     drop_bacula_tables       drop_bacula_database; \
128            \
129         chmod 755 create_@DB_NAME@_database   update_@DB_NAME@_tables  make_@DB_NAME@_tables; \
130         chmod 755 grant_@DB_NAME@_privileges  drop_@DB_NAME@_tables    drop_@DB_NAME@_database; \
131            \
132         chmod 755 make_catalog_backup delete_catalog_backup)
133
134 clean:
135         @for I in ${all_subdirs}; \
136           do (cd $$I; echo "==>Entering directory `pwd`"; ${MAKE} $@ || exit 1); done
137         @(cd platforms; echo "==>Entering directory `pwd`"; ${MAKE} $@ || exit 1)
138         @$(RMF) *~ 1 2 3 core core.* config.guess console.log console.sum
139         @$(RMF) examples/1 examples/2 examples/devices/1 examples/devices/2
140
141
142 # clean for distribution
143 distclean:
144         @for I in $(all_subdirs); do (cd $$I; $(MAKE) $@ || exit 1); done
145         @for I in $(all_subdirs); do (cd $$I; $(RMF) startit stopit btraceback); done
146         @(cd $(srcdir); $(RMF) *~ config.cache config.h config.log config.status config.out)
147         @(cd $(srcdir); $(RMF) Makefile autoconf/Make.common)
148         @(cd platforms; echo "==>Entering directory `pwd`"; ${MAKE} $@ || exit 1)
149         @$(RMF) bacula fd Makefile startmysql stopmysql startit stopit btraceback
150         @$(RMF) bconsole gconsole
151         @$(RMF) *~ 1 2 3 core core.* config.guess console.log console.sum
152         @$(RMF) working/*
153         @$(RMF) -r examples/devices/CVS autoconf/CVS autoconf/gnome-macros/CVS
154         @$(RMF) -r doc/techlogs/2002/CVS doc/techlogs/2001/CVS doc/techlogs/1.27/CVS
155         @$(RMF) -r examples/CVS intl/CVS scripts/CVS
156         @$(RMF) -r po/CVS src/immortal/CVS rescue/freebsd/CVS rescue/solaris/CVS
157         @$(RMF) -r CVS src/gnome-console/CVS src/tconsole/CVS
158
159 distdirs:
160         mkdir ../$(VERNAME);
161         mkdir ../$(VERNAME)/autoconf;
162         @for I in $(all_subdirs); do (cd $$I; $(MAKE) DESTDIR=$(DESTDIR) $@ || (echo "Failed to make distclean in $$I"; exit 0) ); done
163
164 distcopy:
165         $(CP) -p $(DIST) ../$(VERNAME);
166         $(CP) -p $(DIST_CFG) ../$(VERNAME)/autoconf;
167         @for I in $(all_subdirs); do (cd $$I; $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1); done
168
169 distrib: configure autoconf/config.h.in distdirs distcopy
170
171 test:
172
173
174 tar.gz:  ../$(VERNAME).tar.gz
175 ../$(VERNAME).tar.gz:
176         (cd ..; tar cvf - $(VERNAME) | gzip -f9 > $(VERNAME).tar.gz)
177
178 tar.Z: ../$(VERNAME).tar.Z
179 ../$(VERNAME).tar.Z:
180         (cd ..; tar cvf - $(VERNAME) | compress > $(VERNAME).tar.Z)
181
182 tar.bz2: ../$(VERNAME).tar.bz2
183 ../$(VERNAME).tar.bz2:
184         (cd ..; tar cvf - $(VERNAME) | bzip2 -f9 > $(VERNAME).tar.bz2)
185
186 uuencode: tar.gz
187         uuencode ../$(VERNAME).tar.gz $(VERNAME).tar.gz > ../$(VERNAME).tgz.uu
188
189 # ------------------------------------------------------------------------