7 # autoconf/Make.common.in -*- Makefile -*-
8 # release date (man), LSM date, version number/name, current maintainer
12 VERNAME=bacula-$(VERSION)#
14 MAINTEMAIL=<kern@sibbald.com>#
15 #-------------------------------------------------------------------------
19 # Installation target directories & other installation stuff
21 exec_prefix = ${prefix}
24 sbindir = ${exec_prefix}/sbin
25 sysconfdir = ${prefix}/etc
26 scriptdir = @scriptdir@
27 mandir = ${prefix}/man/man1
30 # Tools & program stuff
39 INSTALL = /usr/bin/install -c
40 # add the -s to the following in PRODUCTION mode
41 INSTALL_PROGRAM = /usr/bin/install -c -m @SBINPERM@
42 INSTALL_DATA = /usr/bin/install -c -m 644
43 INSTALL_SCRIPT = /usr/bin/install -c -m @SBINPERM@
44 INSTALL_CONFIG = /usr/bin/install -c -m 640
47 # End of common section of the Makefile
48 #-------------------------------------------------------------------------
60 MKDIR = $(topdir)/autoconf/mkinstalldirs
62 #-------------------------------------------------------------------------
70 #-------------------------------------------------------------------------
77 configure: autoconf/configure.in autoconf/aclocal.m4 autoconf/acconfig.h autoconf/config.h.in
79 ${RMF} -f config.cache config.log config.out config.status src/config.h
80 autoconf --prepend-include=$(srcdir)/autoconf \
81 autoconf/configure.in > configure
86 && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
89 $(SHELL) config.status
92 @$(RMF) *~ 1 2 3 diff */diff *.tar.gz
94 # clean for distribution
99 @for subdir in freebsd linux solaris; do \
100 if [ -f $${subdir}/Makefile ]; then \
101 (cd $${subdir}; $(MAKE) devclean) \
105 (cwd=`pwd`; rm -rf /tmp/bacula-web-$(VERSION); \
106 cd ..; cp -rp $$cwd/bacula-web /tmp/bacula-web-$(VERSION); \
107 cd /tmp/bacula-web-$(VERSION); \
109 find . -name ".#*" -exec rm -rf {} \; ; \
110 find . -name "CVS" -exec rm -rf {} \; ; \
111 find . -name ".cvsignore" -exec rm -rf {} \; ; \
112 rm -rf autom4te.cache; \
114 tar cvfz $$cwd/bacula-web-$(VERSION).tar.gz bacula-web-$(VERSION); \
115 rm -rf /tmp/bacula-web-$(VERSION); \
117 echo "bacula-web release is in: $$cwd/bacula-web-$(VERSION).tar.gz"; \
121 (cwd=`pwd`; rm -rf /tmp/bimagemgr-$(VERSION); \
122 cd ..; cp -rp $$cwd/bimagemgr /tmp/bimagemgr-$(VERSION); \
123 cd /tmp/bimagemgr-$(VERSION); \
125 find . -name ".#*" -exec rm -rf {} \; ; \
126 find . -name "CVS" -exec rm -rf {} \; ; \
127 find . -name ".cvsignore" -exec rm -rf {} \; ; \
128 rm -rf autom4te.cache; \
130 tar cvfz $$cwd/bimagemgr-$(VERSION).tar.gz bimagemgr-$(VERSION); \
131 rm -rf /tmp/bimagemgr-$(VERSION); \
133 echo "bimagemgr release is in: $$cwd/bimagemgr-$(VERSION).tar.gz"; \
136 release: clean release-bacula-web release-bimagemgr
138 # ------------------------------------------------------------------------