diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2003-11-10 22:34:23 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2003-11-10 22:34:23 +0000 |
commit | aaeede303fa9f89ce92c3b2badfd800114d37827 (patch) | |
tree | 4eabce02724112a7eb09f4a9cfb817908fda6292 /Makefile | |
parent | c8ec4402b666f6ddce759265e7db0191dce6a7fa (diff) | |
download | perl_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-- | Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 |