backupninja/Makefile.am

46 lines
1.7 KiB
Makefile
Raw Normal View History

# vi: noexpandtab softtabstop=0
## Process this file with automake to produce Makefile.in
EXTRA_DIST = FAQ.md README.md COPYING AUTHORS INSTALL.md NEWS CHANGELOG.md \
backupninja.spec backupninja.spec.in autogen.sh
SUBDIRS = etc examples handlers lib man src
2006-08-06 20:01:28 +02:00
local_rpm_topdir=`cd $(top_srcdir) && pwd`/rpm
2006-08-06 20:01:28 +02:00
rpm-package: dist
if test x$(HAVE_RPM) = xyes ; then \
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 ; \
$(LN_S) ../../$(distdir).tar.gz ; \
2006-08-06 20:01:28 +02:00
cd .. ; \
cd SPECS ; \
$(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-06 20:01:28 +02:00
srpm-package: dist
if test x$(HAVE_RPM) = xyes ; then \
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 ; \
$(LN_S) ../../$(distdir).tar.gz ; \
2006-08-06 20:01:28 +02:00
cd .. ; \
cd SPECS ; \
$(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 \
echo "Error: RPM executable and/or source directory not found." ; \
fi
clean-local:
-rm -rf $(local_rpm_topdir)