summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-11-25 16:01:32 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-11-25 16:01:32 +0000
commita453b3e5b567506bc517b6a3b32a71d05937eaaa (patch)
tree3dca778f679c889ef6c30a9390ffaaefa11a118e /Makefile
parent2d0f2531bb08e338e8679c0f2afd067c31368cd8 (diff)
downloadperl-MDK-Common-a453b3e5b567506bc517b6a3b32a71d05937eaaa.tar
perl-MDK-Common-a453b3e5b567506bc517b6a3b32a71d05937eaaa.tar.gz
perl-MDK-Common-a453b3e5b567506bc517b6a3b32a71d05937eaaa.tar.bz2
perl-MDK-Common-a453b3e5b567506bc517b6a3b32a71d05937eaaa.tar.xz
perl-MDK-Common-a453b3e5b567506bc517b6a3b32a71d05937eaaa.zip
perl-MDK-Common-devel replaced by package perl_checker
=> perl-MDK-Common is a simple perl package, no more requiring ocaml
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile54
1 files changed, 31 insertions, 23 deletions
diff --git a/Makefile b/Makefile
index 4c5a63e..488ee45 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,3 @@
-NAME = perl-MDK-Common
-TAR = $(NAME).tar.bz2
RPM ?= $(HOME)/rpm
PREFIX = /usr
@@ -7,16 +5,13 @@ BINDIR = $(PREFIX)/bin
VENDORLIB = $(shell eval "`perl -V:installvendorlib`"; echo $$installvendorlib)
INSTALLVENDORLIB = $(DESTDIR)$(VENDORLIB)
PERL_CHECKER_TARGET = native-code
+PERL_CHECKER_VERSION = 1.1.21
-GENERATED = MDK/Common.pm index.html perl_checker.src/perl_checker
+FILES-perl_checker = AUTHORS COPYING README.emacs Makefile misc perl_checker.spec perl_checker.src perl_checker_fake_packages
.PHONY: perl_checker.src
-all: $(GENERATED) test
-
-index.html: MDK/Common.pm
- pod2html $< > $@
- rm -f pod2htm*.tmp
+all: perl_checker.src/perl_checker test
MDK/Common.pm: %: %.pl
perl $< > $@
@@ -25,27 +20,19 @@ perl_checker.src/perl_checker:
$(MAKE) -C perl_checker.src build_ml perl_checker.html $(PERL_CHECKER_TARGET) VENDORLIB=$(VENDORLIB) DEBUG=0
test: perl_checker.src/perl_checker
- perl_checker.src/perl_checker MDK/Common/*.pm
$(MAKE) -C perl_checker.src/test
clean:
- rm -f $(GENERATED)
+ rm -f Makefile-MDK-Common MDK/Common.pm perl_checker.src/perl_checker *.tar.* META.yml .perl_checker.cache lib
$(MAKE) -C perl_checker.src clean
find -name "*~" | xargs rm -rf
install: clean all
- install -d $(DESTDIR)$(BINDIR) $(INSTALLVENDORLIB)/MDK/Common
$(MAKE) -C misc install
install perl_checker.src/perl_checker $(DESTDIR)$(BINDIR)
- install -m 644 MDK/Common.pm $(INSTALLVENDORLIB)/MDK
- install -m 644 MDK/Common/*.pm $(INSTALLVENDORLIB)/MDK/Common
+ install -d $(INSTALLVENDORLIB)
tar c `find perl_checker_fake_packages -name "*.pm"` | tar xC $(INSTALLVENDORLIB)
-rpm: srpm
- -rpmbuild -bb $(RPM)/SPECS/$(NAME).spec
- rm -f ../$(TAR)
-
-
update:
cvs update
@@ -53,9 +40,30 @@ commit:
cvs commit
tar: clean
- cd .. ; tar cf - $(NAME) | bzip2 -9 >$(TAR)
+ mkdir -p perl_checker-$(PERL_CHECKER_VERSION)
+ tar c --exclude CVS $(FILES-perl_checker) | tar xC perl_checker-$(PERL_CHECKER_VERSION)
+ tar cfj perl_checker-$(PERL_CHECKER_VERSION).tar.bz2 perl_checker-$(PERL_CHECKER_VERSION)
+ rm -rf perl_checker-$(PERL_CHECKER_VERSION)
+
+srpm: tar
+ cp -f perl_checker*.tar.* $(RPM)/SOURCES
+ cat perl_checker.spec > $(RPM)/SPECS/perl_checker.spec
+ -rpmbuild -bs $(RPM)/SPECS/perl_checker.spec
+
+rpm: update srpm
+ -rpmbuild -bb $(RPM)/SPECS/perl_checker.spec
+
+
+Makefile-MDK-Common:
+ MAKEFILE_NAME=Makefile-MDK-Common perl Makefile.PL
+
+tar-MDK-Common: clean Makefile-MDK-Common
+ $(MAKE) -f Makefile-MDK-Common dist
+
+srpm-MDK-Common: update tar-MDK-Common
+ cp -f MDK-Common*.tar.* $(RPM)/SOURCES
+ perl -I. -MMDK::Common -pe 's/THEVERSION/$$MDK::Common::VERSION/' perl-MDK-Common.spec > $(RPM)/SPECS/perl-MDK-Common.spec
+ -rpmbuild -bs $(RPM)/SPECS/perl-MDK-Common.spec
-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 -bs $(RPM)/SPECS/$(NAME).spec
+rpm-MDK-Common: srpm-MDK-Common
+ -rpmbuild -bb $(RPM)/SPECS/perl-MDK-Common.spec