summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
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