From 03ea23b8e70cac9649ef0ed9793ddb4baf24894a Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Wed, 11 Jun 2014 14:02:55 +0200 Subject: Add spec file and rp target. --- Makefile.am | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 3db006e..5b8072b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,3 +1,28 @@ AUTOMAKE_OPTIONS = gnu SUBDIRS = pixmaps tools src etc man DISTDIRS = pixmaps tools src etc man + +EXTRA_DIST = \ + hugin/hugin.h \ + hugin/hugin.hpp \ + hugin/hugin.c \ + hugin/hugin_util.h \ + hugin/hugin_filter.h \ + hugin/hugin_syslog.h \ + hugin/hugin_syslog.c + +rpm: + @echo "## Creating miav.rpm" + @echo "# Delete old rpmbuild (if one exists):" + rm -Rf rpmbuild + + @echo "# Create rpmbuild directories:" + mkdir -p rpmbuild/{RPMS,BUILD,SOURCES} + make dist + cp miav-0.4.0.tar.gz rpmbuild/SOURCES + + rpmbuild -ba miav.spec --define="%_topdir ${PWD}/rpmbuild" +# rpmbuild -bb miav.spec --define="%_topdir ${PWD}/rpmbuild" + + mv rpmbuild/RPMS/`arch`/miav-*.rpm . + -- cgit v1.2.3