add patch from matthew palmer to enhance mysql database selection (Closes: #452039)
[matthijs/upstream/backupninja.git] / Makefile.am
1 # vi: noexpandtab softtabstop=0
2 ## Process this file with automake to produce Makefile.in
3
4 EXTRA_DIST = README COPYING AUTHORS INSTALL NEWS ChangeLog \
5              backupninja.spec backupninja.spec.in autogen.sh
6
7 SUBDIRS = etc examples handlers lib man src
8
9 local_rpm_topdir=`cd $(top_srcdir) && pwd`/rpm
10 rpm-package: dist
11         if test x$(HAVE_RPM) = xyes ; then \
12                mkdir -p $(local_rpm_topdir) ; \
13                cd $(local_rpm_topdir) ; \
14                mkdir -p BUILD RPMS SOURCES SPECS ; \
15                cd SOURCES ; \
16                $(LN_S) ../../$(distdir).tar.gz ; \
17                cd .. ; \
18                cd SPECS ; \
19                $(LN_S) ../../backupninja.spec . ; \
20                cd .. ; \
21                rpmbuild --define "_topdir `cd . && pwd`" -bb SPECS/backupninja.spec && \
22                echo "Package successfully built in `pwd`/RPMS." ; \
23        else \
24                echo "Error: RPM executable and/or source directory not found." ; \
25        fi
26
27 srpm-package: dist
28         if test x$(HAVE_RPM) = xyes ; then \
29                mkdir -p $(local_rpm_topdir) ; \
30                cd $(local_rpm_topdir) ; \
31                mkdir -p BUILD SRPMS SOURCES SPECS ; \
32                cd SOURCES ; \
33                $(LN_S) ../../$(distdir).tar.gz ; \
34                cd .. ; \
35                cd SPECS ; \
36                $(LN_S) ../../backupninja.spec . \
37                cd .. ; \
38                rpmbuild --define "_topdir `cd . && pwd`" -bs SPECS/backupninja.spec && \
39                echo "Package successfully built in `pwd`/SRPMS." ; \
40        else \
41               echo "Error: RPM executable and/or source directory not found." ; \
42        fi
43
44 clean-local:
45         -rm -rf $(local_rpm_topdir)