summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-08-13 03:01:12 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-08-13 03:01:12 +0000
commit3fc7ffeb3d832c8a84ced4b597535326676d68a3 (patch)
treee9b58f3fe3659f5591b3208e00e412e37f3c6c0d /Makefile
parentae203b7f2f5ccc9d7fd3711dae54e0177f683e49 (diff)
downloadperl-MDK-Common-3fc7ffeb3d832c8a84ced4b597535326676d68a3.tar
perl-MDK-Common-3fc7ffeb3d832c8a84ced4b597535326676d68a3.tar.gz
perl-MDK-Common-3fc7ffeb3d832c8a84ced4b597535326676d68a3.tar.bz2
perl-MDK-Common-3fc7ffeb3d832c8a84ced4b597535326676d68a3.tar.xz
perl-MDK-Common-3fc7ffeb3d832c8a84ced4b597535326676d68a3.zip
- use DESTDIR
- add perl_checker-vim - add Ctrl-return in perl and cperl emacs mode
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index d67250e..4c5a63e 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ RPM ?= $(HOME)/rpm
PREFIX = /usr
BINDIR = $(PREFIX)/bin
VENDORLIB = $(shell eval "`perl -V:installvendorlib`"; echo $$installvendorlib)
-INSTALLVENDORLIB = $(shell echo $(VENDORLIB) | sed 's,/usr,$(PREFIX),')
+INSTALLVENDORLIB = $(DESTDIR)$(VENDORLIB)
PERL_CHECKER_TARGET = native-code
GENERATED = MDK/Common.pm index.html perl_checker.src/perl_checker
@@ -34,8 +34,9 @@ clean:
find -name "*~" | xargs rm -rf
install: clean all
- install -d $(BINDIR) $(INSTALLVENDORLIB)/MDK/Common
- install perl_checker.src/perl_checker $(BINDIR)
+ 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
tar c `find perl_checker_fake_packages -name "*.pm"` | tar xC $(INSTALLVENDORLIB)