[libvirt-snmp][PATCH 2/3] Makefile: Introduce srpm target

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Just like we have 'rpm' we might have 'srpm'.

Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
---
 Makefile.am | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 9ac6fc2..6ce91ed 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,14 +1,18 @@
 SUBDIRS=src/ docs/
 
 EXTRA_DIST = \
-	libvirt-snmp.spec libvirt-snmp.spec.in \
+	$(PACKAGE).spec \
+	$(PACKAGE).spec.in \
 	autobuild.sh \
 	autogen.sh \
 	AUTHORS.in \
 	$(NULL)
 
 rpm: clean
-		@(unset CDPATH ; $(MAKE) dist && rpmbuild -ta $(distdir).tar.gz)
+	@(unset CDPATH ; $(MAKE) dist && rpmbuild -ta $(distdir).tar.xz)
+
+srpm: clean
+	@(unset CDPATH ; $(MAKE) dist && rpmbuild -ts $(distdir).tar.xz)
 
 dist-hook: gen-ChangeLog gen-AUTHORS
 
-- 
2.16.4

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux