diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2001-07-24 16:53:54 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2001-07-24 16:53:54 +0000 |
commit | 5bef71a0c86613f95e154d08b5f8f0cc23226e27 (patch) | |
tree | 57150f236c56d435fbf76b092eab0a78007169c4 /Makefile | |
parent | d7cea7bcbafb212013a3638ee3e76d63e9ef18cc (diff) | |
download | perl-MDK-Common-5bef71a0c86613f95e154d08b5f8f0cc23226e27.tar perl-MDK-Common-5bef71a0c86613f95e154d08b5f8f0cc23226e27.tar.gz perl-MDK-Common-5bef71a0c86613f95e154d08b5f8f0cc23226e27.tar.bz2 perl-MDK-Common-5bef71a0c86613f95e154d08b5f8f0cc23226e27.tar.xz perl-MDK-Common-5bef71a0c86613f95e154d08b5f8f0cc23226e27.zip |
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..fec205a --- /dev/null +++ b/Makefile @@ -0,0 +1,35 @@ +NAME = perl-MDK-Common +TAR = $(NAME).tar.bz2 + +PREFIX = /usr +BINDIR = $(PREFIX)/bin +INSTALLSITEARCH = $(shell eval "`perl -V:installsitelib`"; echo $$installsitelib | sed 's,/usr,$(PREFIX),') + +test: + ./perl_checker MDK/Common/*.pm + +clean: + find -name "*~" | xargs rm -rf + +install: clean test + install -d $(BINDIR) $(INSTALLSITEARCH) + install perl_checker $(BINDIR) + cp -r MDK $(INSTALLSITEARCH) + +rpm: update tar build commit + + +update: +# cvs update + +commit: + cvs commit + +tar: clean + cd .. ; tar cf - $(NAME) | bzip2 -9 >$(TAR) + +build: + cp -f ../$(TAR) $(RPM)/SOURCES + perl -MMDK::Common -pe 's/THEVERSION/$$MDK::Common::VERSION/' $(NAME).spec > $(RPM)/SPECS/$(NAME).spec + -rpm -ba $(NAME).spec + rm -f ../$(TAR) |