source: trunk/essentials/dev-lang/perl/Makefile.kmk@ 3224

Last change on this file since 3224 was 3223, checked in by bird, 18 years ago

installation hacks.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id: Makefile.kmk 3223 2007-04-29 18:02:22Z bird $
2
3DEPTH = ../../..
4include $(PATH_KBUILD)/header.kmk
5GMAKE ?= $(PATH_KBUILD_BIN)/kmk_gmake$(HOSTSUFF_EXE)
6
7
8EXTRAS :=
9ifndef NOT_BOOTSTRAPPING_KNIX
10EXTRAS := -Dgmake=$(GMAKE) \
11 -Dmake=$(GMAKE)
12endif
13ifeq ($(BUILD_TYPE),debug)
14EXTRAS += -Doptimize='-g'
15endif
16
17ifdef PERL_SH_DIR
18$(error This is gonna cause trouble: PERL_SH_DIR=$(PERL_SH_DIR))
19endif
20
21#
22# The usual targets.
23#
24
25# configuring
26.PHONY: config
27config:
28 $(RM) -f config.sh Policy.sh
29 EMXSHELL="$(ASH)" \
30 ./Configure -des \
31 -Dprefix=/@unixroot/usr \
32 -Dvendorprefix=/@unixroot/usr \
33 -Dsiteprefix=/@unixroot/usr \
34 -Dscriptdir=/@unixroot/usr/bin \
35 -Dman1dir=/@unixroot/usr/share/man/man1 \
36 -Dman3dir=/@unixroot/usr/share/man/man3 \
37 -Dinstallman1dir=/@unixroot/usr/share/man/man1 \
38 -Dinstallman3dir=/@unixroot/usr/share/man/man3 \
39 -Dpager=/@unixroot/usr/bin/less.exe \
40 $(EXTRAS) \
41 -Dd_dirfd='undef' \
42 -Dcf_by='kNIX'
43
44# building
45.PHONY: build
46build:
47 +$(GMAKE) MAKE=$(GMAKE)
48
49# testing
50.PHONY: check test
51check test:
52 +$(GMAKE) MAKE=$(GMAKE) test
53
54# installation
55.PHONY: install
56install:
57 +$(GMAKE) MAKE=$(GMAKE) \
58 INSTALLPREFIXEXP=$(PATH_INS)/usr \
59 bin=$(PATH_INS)/usr/bin \
60 scriptdir=$(PATH_INS)/usr/bin \
61 shrpdir=$(PATH_INS)/usr/lib/perl5/5.8.8/os2/CORE \
62 privlib=$(PATH_INS)/usr/lib/perl5/5.8.8 \
63 man1dir=$(PATH_INS)/usr/share/man/man1 \
64 man3dir=$(PATH_INS)/usr/share/man/man3 \
65 \
66 DESTDIR=$(PATH_INS) \
67 INSTALLFLAGS="-V" \
68 \
69 install
70# packing
71.PHONY: pass_packing
72pass_packing: defaultpacking
73
74
75#
76# perl specific.
77#
78
79.PHONY: depend
80depend:
81 $(RMDIR) $(wildcard .depending ./*/.depending ./*/*/.depending ./*/*/*/.depending)
82 +$(GMAKE) MAKE=$(GMAKE) depend
83
Note: See TracBrowser for help on using the repository browser.