1 # vi: noexpandtab softtabstop=0
2 ## Process this file with automake to produce Makefile.in
4 EXTRA_DIST = README COPYING AUTHORS INSTALL NEWS ChangeLog \
5 backupninja.spec backupninja.spec.in autogen.sh
7 SUBDIRS = etc examples handlers lib man src
9 local_rpm_topdir=`cd $(top_srcdir) && pwd`/rpm
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 ; \
16 $(LN_S) ../../$(distdir).tar.gz ; \
19 $(LN_S) ../../backupninja.spec . ; \
21 rpmbuild --define "_topdir `cd . && pwd`" -bb SPECS/backupninja.spec && \
22 echo "Package successfully built in `pwd`/RPMS." ; \
24 echo "Error: RPM executable and/or source directory not found." ; \
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 ; \
33 $(LN_S) ../../$(distdir).tar.gz ; \
36 $(LN_S) ../../backupninja.spec . \
38 rpmbuild --define "_topdir `cd . && pwd`" -bs SPECS/backupninja.spec && \
39 echo "Package successfully built in `pwd`/SRPMS." ; \
41 echo "Error: RPM executable and/or source directory not found." ; \
45 -rm -rf $(local_rpm_topdir)