2005-10-27 01:05:26 +02:00
|
|
|
# vi: noexpandtab softtabstop=0
|
|
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
|
2017-02-17 09:49:06 +01:00
|
|
|
EXTRA_DIST = FAQ.md README.md COPYING AUTHORS INSTALL.md NEWS ChangeLog \
|
2005-10-27 01:05:26 +02:00
|
|
|
backupninja.spec backupninja.spec.in autogen.sh
|
|
|
|
|
2005-11-29 11:08:41 +01:00
|
|
|
SUBDIRS = etc examples handlers lib man src
|
2006-08-06 20:01:28 +02:00
|
|
|
|
2006-08-11 15:46:57 +02:00
|
|
|
local_rpm_topdir=`cd $(top_srcdir) && pwd`/rpm
|
2006-08-06 20:01:28 +02:00
|
|
|
rpm-package: dist
|
2006-11-29 00:27:19 +01:00
|
|
|
if test x$(HAVE_RPM) = xyes ; then \
|
2006-08-11 15:46:57 +02:00
|
|
|
mkdir -p $(local_rpm_topdir) ; \
|
|
|
|
cd $(local_rpm_topdir) ; \
|
2006-08-06 20:01:28 +02:00
|
|
|
mkdir -p BUILD RPMS SOURCES SPECS ; \
|
|
|
|
cd SOURCES ; \
|
2006-08-11 15:46:57 +02:00
|
|
|
$(LN_S) ../../$(distdir).tar.gz ; \
|
2006-08-06 20:01:28 +02:00
|
|
|
cd .. ; \
|
|
|
|
cd SPECS ; \
|
2006-08-11 15:46:57 +02:00
|
|
|
$(LN_S) ../../backupninja.spec . ; \
|
|
|
|
cd .. ; \
|
2006-08-06 20:01:28 +02:00
|
|
|
rpmbuild --define "_topdir `cd . && pwd`" -bb SPECS/backupninja.spec && \
|
|
|
|
echo "Package successfully built in `pwd`/RPMS." ; \
|
|
|
|
else \
|
|
|
|
echo "Error: RPM executable and/or source directory not found." ; \
|
|
|
|
fi
|
2006-08-11 15:46:57 +02:00
|
|
|
|
2006-08-06 20:01:28 +02:00
|
|
|
srpm-package: dist
|
2006-11-29 00:27:19 +01:00
|
|
|
if test x$(HAVE_RPM) = xyes ; then \
|
2006-08-11 15:46:57 +02:00
|
|
|
mkdir -p $(local_rpm_topdir) ; \
|
|
|
|
cd $(local_rpm_topdir) ; \
|
2006-08-06 20:01:28 +02:00
|
|
|
mkdir -p BUILD SRPMS SOURCES SPECS ; \
|
|
|
|
cd SOURCES ; \
|
2006-08-11 15:46:57 +02:00
|
|
|
$(LN_S) ../../$(distdir).tar.gz ; \
|
2006-08-06 20:01:28 +02:00
|
|
|
cd .. ; \
|
|
|
|
cd SPECS ; \
|
2006-08-11 15:46:57 +02:00
|
|
|
$(LN_S) ../../backupninja.spec . \
|
|
|
|
cd .. ; \
|
2006-08-06 20:01:28 +02:00
|
|
|
rpmbuild --define "_topdir `cd . && pwd`" -bs SPECS/backupninja.spec && \
|
|
|
|
echo "Package successfully built in `pwd`/SRPMS." ; \
|
|
|
|
else \
|
2006-08-11 15:46:57 +02:00
|
|
|
echo "Error: RPM executable and/or source directory not found." ; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
clean-local:
|
|
|
|
-rm -rf $(local_rpm_topdir)
|