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
commit8fc18c51287137dc0c13573f4f2d07adbf0f29ea (patch)
treecd4013d8d3e95fe7ef2c980e2475dc7c3d6a0cc0 /Makefile
parent35e284a41fbd71efa52709400f529869b7b42e44 (diff)
downloadperl-MDK-Common-8fc18c51287137dc0c13573f4f2d07adbf0f29ea.tar
perl-MDK-Common-8fc18c51287137dc0c13573f4f2d07adbf0f29ea.tar.gz
perl-MDK-Common-8fc18c51287137dc0c13573f4f2d07adbf0f29ea.tar.bz2
perl-MDK-Common-8fc18c51287137dc0c13573f4f2d07adbf0f29ea.tar.xz
perl-MDK-Common-8fc18c51287137dc0c13573f4f2d07adbf0f29ea.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