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

Michal Privoznik mprivozn at redhat.com
Fri Jun 26 09:06:16 UTC 2015


It allows you to 'make rpm'.

Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
---
 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




More information about the libvir-list mailing list