[libvirt-php][PATCH 4/8] Makefile: Introduce 'rpm' target

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

 



It allows you to 'make rpm'.

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

diff --git a/Makefile.am b/Makefile.am
index 78ada5b..9db368a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3,3 +3,6 @@ SUBDIRS = tools src docs tests
 ACLOCAL_AMFLAGS = -I m4
 
 EXTRA_DIST = libvirt-php.spec libvirt-php.spec.in winsrc
+
+rpm: clean
+	@(unset CDPATH ; $(MAKE) dist && rpmbuild -ta $(distdir).tar.gz)
-- 
2.3.6

--
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]