It allows you to 'make rpm'.
Signed-off-by: Michal Privoznik <mprivozn(a)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