From aaeede303fa9f89ce92c3b2badfd800114d37827 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 10 Nov 2003 22:34:23 +0000 Subject: add srpm target --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f0315fe..35d224b 100644 --- a/Makefile +++ b/Makefile @@ -38,7 +38,9 @@ install: clean all install -m 644 MDK/Common/*.pm $(INSTALLVENDORLIB)/MDK/Common tar c `find perl_checker_fake_packages -name "*.pm"` | tar xC $(INSTALLVENDORLIB) -rpm: update tar build commit +rpm: srpm + -rpmbuild -bb $(RPM)/SPECS/$(NAME).spec + rm -f ../$(TAR) update: @@ -50,8 +52,7 @@ commit: tar: clean cd .. ; tar cf - $(NAME) | bzip2 -9 >$(TAR) -build: MDK/Common.pm +srpm: update tar MDK/Common.pm cp -f ../$(TAR) $(RPM)/SOURCES perl -I. -MMDK::Common -pe 's/THEVERSION/$$MDK::Common::VERSION/' $(NAME).spec > $(RPM)/SPECS/$(NAME).spec - -rpmbuild -ba $(RPM)/SPECS/$(NAME).spec - rm -f ../$(TAR) + -rpmbuild -bs $(RPM)/SPECS/$(NAME).spec -- cgit v1.2.1