summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-11-10 22:34:23 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-11-10 22:34:23 +0000
commitaaeede303fa9f89ce92c3b2badfd800114d37827 (patch)
tree4eabce02724112a7eb09f4a9cfb817908fda6292 /Makefile
parentc8ec4402b666f6ddce759265e7db0191dce6a7fa (diff)
downloadperl_checker-aaeede303fa9f89ce92c3b2badfd800114d37827.tar
perl_checker-aaeede303fa9f89ce92c3b2badfd800114d37827.tar.gz
perl_checker-aaeede303fa9f89ce92c3b2badfd800114d37827.tar.bz2
perl_checker-aaeede303fa9f89ce92c3b2badfd800114d37827.tar.xz
perl_checker-aaeede303fa9f89ce92c3b2badfd800114d37827.zip
add srpm target
Diffstat (limited to 'Makefile')
-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