]> git.sur5r.net Git - bacula/bacula/blob - bacula/Makefile.in
Add install-menu-xsu target and files.
[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         ${RMF} -f config.cache config.log config.out config.status src/config.h
59         autoconf --prepend-include=$(srcdir)/autoconf \
60         autoconf/configure.in > configure
61         chmod 755 configure
62
63 old-configure: autoconf/configure.in autoconf/aclocal.m4 autoconf/acconfig.h
64         cd $(srcdir);
65         ${RMF} -f config.cache config.log config.out config.status src/config.h
66         autoconf --include=$(srcdir)/autoconf \
67         autoconf/configure.in > configure
68         chmod 755 configure
69         @rm -f config.cache
70
71 config.status:
72         if test -x config.status; then config.status --recheck; \
73         else $(SHELL) configure; fi
74
75 autoconf/config.h.in: autoconf/configure.in autoconf/acconfig.h
76         cd $(srcdir);
77         ${RMF} -f config.cache config.log config.out config.status src/config.h
78         autoheader --prepend-include=$(srcdir)/autoconf \
79         autoconf/configure.in > autoconf/config.h.in
80         chmod 644 autoconf/config.h.in
81
82 installdirs:
83         $(MKDIR) $(DESTDIR)$(sbindir)
84         $(MKDIR) $(DESTDIR)$(sysconfdir)
85         $(MKDIR) $(DESTDIR)$(scriptdir)
86         $(MKDIR) $(DESTDIR)$(working_dir)
87 #       $(MKDIR) $(DESTDIR)$(mandir)
88         $(MKDIR) $(DESTDIR)/usr/share/pixmaps
89         $(MKDIR) $(DESTDIR)/usr/share/gnome/apps/System
90         $(MKDIR) $(DESTDIR)/usr/share/applications
91         $(MKDIR) $(DESTDIR)/etc/security/console.apps
92         $(MKDIR) $(DESTDIR)/etc/pam.d
93         $(MKDIR) $(DESTDIR)/usr/bin
94
95 install-menu: installdirs
96         ${INSTALL_DATA} scripts/bacula.png $(DESTDIR)/usr/share/pixmaps/bacula.png
97         ${INSTALL_DATA} scripts/bacula.desktop.gnome1 $(DESTDIR)/usr/share/gnome/apps/System/bacula.desktop
98         ${INSTALL_DATA} scripts/bacula.desktop.gnome2 $(DESTDIR)/usr/share/applications/bacula.desktop
99
100 install-menu-xsu: installdirs
101         ${INSTALL_DATA} scripts/bacula.png $(DESTDIR)/usr/share/pixmaps/bacula.png
102         ${INSTALL_DATA} scripts/bacula.desktop.gnome1.xsu $(DESTDIR)/usr/share/gnome/apps/System/bacula.desktop
103         ${INSTALL_DATA} scripts/bacula.desktop.gnome2.xsu $(DESTDIR)/usr/share/applications/bacula.desktop
104
105 install-menu-consolehelper: installdirs
106         ${INSTALL_DATA} scripts/bacula.png $(DESTDIR)/usr/share/pixmaps/bacula.png
107         ${INSTALL_DATA} scripts/bacula.desktop.gnome1.consolehelper $(DESTDIR)/usr/share/gnome/apps/System/bacula.desktop
108         ${INSTALL_DATA} scripts/bacula.desktop.gnome2.consolehelper $(DESTDIR)/usr/share/applications/bacula.desktop
109         ${INSTALL_DATA} scripts/gnome-console.console_apps $(DESTDIR)/etc/security/console.apps/gnome-console
110         ${INSTALL_DATA} scripts/gnome-console.pamd $(DESTDIR)/etc/pam.d/gnome-console
111         ln -s /usr/bin/consolehelper $(DESTDIR)/usr/bin/gnome-console
112
113 install: installdirs
114         @for I in $(all_subdirs); do (cd $$I; $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1); done
115
116 uninstall:
117         @for I in $(all_subdirs); do (cd $$I; $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1); done
118
119 install-autostart:
120         (cd platforms; $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1) 
121
122 install-autostart-dir:
123         (cd platforms; $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1) 
124
125 install-autostart-fd:
126         (cd platforms; $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1) 
127
128 install-autostart-sd:
129         (cd platforms; $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1) 
130
131 uninstall-autostart:
132         (cd platforms; $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1)
133
134 uninstall-autostart-dir:
135         (cd platforms; $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1)
136
137 uninstall-autostart-fd:
138         (cd platforms; $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1)
139
140 uninstall-autostart-sd:
141         (cd platforms; $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1)
142
143 Makefile: Makefile.in
144         cd $(topdir) \
145             && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
146
147 Makefiles:
148         $(SHELL) config.status
149         (cd scripts; \
150         chmod 755 startmysql stopmysql bacula fd startit stopit btraceback; \
151         chmod 755 mtx-changer bconsole gconsole devel_bacula)
152
153         (cd src/cats; \
154         chmod 755 create_bacula_database      update_bacula_tables     make_bacula_tables; \
155         chmod 755 grant_bacula_privileges     drop_bacula_tables       drop_bacula_database; \
156            \
157         chmod 755 create_@DB_NAME@_database   update_@DB_NAME@_tables  make_@DB_NAME@_tables; \
158         chmod 755 grant_@DB_NAME@_privileges  drop_@DB_NAME@_tables    drop_@DB_NAME@_database; \
159            \
160         chmod 755 make_catalog_backup delete_catalog_backup)
161
162 clean:
163         @for I in ${all_subdirs}; \
164           do (cd $$I; echo "==>Entering directory `pwd`"; ${MAKE} $@ || exit 1); done
165         @(cd platforms; echo "==>Entering directory `pwd`"; ${MAKE} $@ || exit 1)
166         @$(RMF) *~ 1 2 3 core core.* config.guess console.log console.sum
167         @$(RMF) examples/1 examples/2 examples/devices/1 examples/devices/2
168
169
170 # clean for distribution
171 distclean:
172         @for I in $(all_subdirs); do (cd $$I; $(MAKE) $@ || exit 1); done
173         @for I in $(all_subdirs); do (cd $$I; $(RMF) startit stopit btraceback); done
174         @(cd $(srcdir); $(RMF) *~ config.cache config.h config.log config.status config.out)
175         @(cd $(srcdir); $(RMF) Makefile autoconf/Make.common)
176         @(cd platforms; echo "==>Entering directory `pwd`"; ${MAKE} $@ || exit 1)
177         @$(RMF) bacula fd Makefile startmysql stopmysql startit stopit btraceback
178         @$(RMF) bconsole gconsole
179         @$(RMF) *~ 1 2 3 core core.* config.guess console.log console.sum
180         @$(RMF) working/*
181         @$(RMF) -r examples/devices/CVS autoconf/CVS autoconf/gnome-macros/CVS
182         @$(RMF) -r doc/techlogs/2002/CVS doc/techlogs/2001/CVS doc/techlogs/1.27/CVS
183         @$(RMF) -r examples/CVS intl/CVS scripts/CVS
184         @$(RMF) -r po/CVS src/immortal/CVS rescue/freebsd/CVS rescue/solaris/CVS
185         @$(RMF) -r CVS src/gnome-console/CVS src/tconsole/CVS
186
187 devclean:
188         @for I in $(all_subdirs); do (cd $$I; $(MAKE) $@ || exit 1); done
189         @for I in $(all_subdirs); do (cd $$I; $(RMF) startit stopit btraceback); done
190         @(cd $(srcdir); $(RMF) *~ config.cache config.h config.log config.status config.out)
191         @(cd $(srcdir); $(RMF) Makefile autoconf/Make.common)
192         @(cd platforms; echo "==>Entering directory `pwd`"; ${MAKE} $@ || exit 1)
193         @$(RMF) bacula fd Makefile startmysql stopmysql startit stopit btraceback
194         @$(RMF) bconsole gconsole
195         @$(RMF) *~ 1 2 3 core core.* config.guess console.log console.sum
196         @$(RMF) working/*
197
198 distdirs:
199         mkdir ../$(VERNAME);
200         mkdir ../$(VERNAME)/autoconf;
201         @for I in $(all_subdirs); do (cd $$I; $(MAKE) DESTDIR=$(DESTDIR) $@ || (echo "Failed to make distclean in $$I"; exit 0) ); done
202
203 distcopy:
204         $(CP) -p $(DIST) ../$(VERNAME);
205         $(CP) -p $(DIST_CFG) ../$(VERNAME)/autoconf;
206         @for I in $(all_subdirs); do (cd $$I; $(MAKE) DESTDIR=$(DESTDIR) $@ || exit 1); done
207
208 distrib: configure autoconf/config.h.in distdirs distcopy
209
210 test:
211
212
213 tar.gz:  ../$(VERNAME).tar.gz
214 ../$(VERNAME).tar.gz:
215         (cd ..; tar cvf - $(VERNAME) | gzip -f9 > $(VERNAME).tar.gz)
216
217 tar.Z: ../$(VERNAME).tar.Z
218 ../$(VERNAME).tar.Z:
219         (cd ..; tar cvf - $(VERNAME) | compress > $(VERNAME).tar.Z)
220
221 tar.bz2: ../$(VERNAME).tar.bz2
222 ../$(VERNAME).tar.bz2:
223         (cd ..; tar cvf - $(VERNAME) | bzip2 -f9 > $(VERNAME).tar.bz2)
224
225 uuencode: tar.gz
226         uuencode ../$(VERNAME).tar.gz $(VERNAME).tar.gz > ../$(VERNAME).tgz.uu
227
228 # ------------------------------------------------------------------------