summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile62
1 files changed, 18 insertions, 44 deletions
diff --git a/Makefile b/Makefile
index fb060b6..4fb4879 100644
--- a/Makefile
+++ b/Makefile
@@ -2,68 +2,42 @@ RPM ?= $(HOME)/rpm
PREFIX = /usr
BINDIR = $(PREFIX)/bin
-VENDORLIB = $(shell eval "`perl -V:installvendorlib`"; echo $$installvendorlib)
-INSTALLVENDORLIB = $(DESTDIR)$(VENDORLIB)
+DATADIR = $(PREFIX)/share
+fake_packages_dir = $(DATADIR)/perl_checker/fake_packages
PERL_CHECKER_TARGET = native-code
-PERL_CHECKER_VERSION = 1.1.27
+PERL_CHECKER_VERSION = 1.2.4
-FILES-perl_checker = AUTHORS COPYING README.emacs Makefile misc perl_checker.spec perl_checker.src perl_checker_fake_packages
+FILES-perl_checker = AUTHORS COPYING README.emacs Makefile misc src fake_packages
-.PHONY: perl_checker.src
+.PHONY: src
-all: perl_checker.src/perl_checker test
+all: src/perl_checker test
-MDK/Common.pm: %: %.pl
- perl $< > $@
+src/perl_checker:
+ $(MAKE) -C src build_ml perl_checker.html $(PERL_CHECKER_TARGET) fake_packages_dir=$(fake_packages_dir) DEBUG=0
-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
- $(MAKE) -C perl_checker.src/test
+test: src/perl_checker
+ $(MAKE) -C src/test
clean:
- rm -f Makefile-MDK-Common MDK/Common.pm perl_checker.src/perl_checker *.tar.* .perl_checker.cache lib
- $(MAKE) -C perl_checker.src clean
+ rm -f src/perl_checker *.tar.* .perl_checker.cache lib
+ $(MAKE) -C src clean
find -name "*~" | xargs rm -rf
install: clean all
$(MAKE) -C misc install
- install perl_checker.src/perl_checker $(DESTDIR)$(BINDIR)
- install -d $(INSTALLVENDORLIB)
- tar c `find perl_checker_fake_packages -name "*.pm"` | tar xC $(INSTALLVENDORLIB)
+ install src/perl_checker $(DESTDIR)$(BINDIR)
+ install -d $(DESTDIR)$(fake_packages_dir)
+ cd fake_packages ; tar c `find . -name "*.pm"` | tar xC $(DESTDIR)$(fake_packages_dir)
update:
- cvs update
+ svn update
commit:
- cvs commit
+ svn commit
tar: clean
mkdir -p perl_checker-$(PERL_CHECKER_VERSION)
- tar c --exclude CVS $(FILES-perl_checker) | tar xC perl_checker-$(PERL_CHECKER_VERSION)
+ tar c --exclude "GNUmakefile*" --exclude .svn $(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: 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
-
-rpm-MDK-Common: srpm-MDK-Common
- -rpmbuild -bb $(RPM)/SPECS/perl-MDK-Common.spec