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

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

some more rules.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# $Id: Makefile.kmk 3300 2007-05-05 23:50:48Z 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#
24all_recursive: \
25 config \
26 build \
27 install
28
29# configuring
30.PHONY: config
31.NOTPARALLEL: config
32config:
33 $(RM) -f config.sh Policy.sh
34 EMXSHELL="$(ASH)" \
35 ./Configure -des \
36 -Dprefix=/@unixroot/usr \
37 -Dvendorprefix=/@unixroot/usr \
38 -Dsiteprefix=/@unixroot/usr \
39 -Dscriptdir=/@unixroot/usr/bin \
40 -Dman1dir=/@unixroot/usr/share/man/man1 \
41 -Dman3dir=/@unixroot/usr/share/man/man3 \
42 -Dinstallman1dir=/@unixroot/usr/share/man/man1 \
43 -Dinstallman3dir=/@unixroot/usr/share/man/man3 \
44 -Dpager=/@unixroot/usr/bin/less.exe \
45 $(EXTRAS) \
46 -Dd_dirfd='undef' \
47 -Dcf_by='kNIX'
48
49
50# building
51.PHONY: build
52.NOTPARALLEL: build
53build:
54 +$(GMAKE) MAKE=$(GMAKE)
55
56# testing
57.PHONY: check test
58.NOTPARALLEL: check test
59check test:
60 +$(GMAKE) MAKE=$(GMAKE) test
61
62# installation
63.PHONY: install
64.NOTPARALLEL: install
65install:
66 +$(GMAKE) MAKE=$(GMAKE) \
67 INSTALLPREFIXEXP=$(PATH_INS)/usr \
68 bin=$(PATH_INS)/usr/bin \
69 scriptdir=$(PATH_INS)/usr/bin \
70 shrpdir=$(PATH_INS)/usr/lib/perl5/5.8.8/os2/CORE \
71 privlib=$(PATH_INS)/usr/lib/perl5/5.8.8 \
72 man1dir=$(PATH_INS)/usr/share/man/man1 \
73 man3dir=$(PATH_INS)/usr/share/man/man3 \
74 \
75 DESTDIR=$(PATH_INS) \
76 INSTALLFLAGS="-V" \
77 \
78 install
79# packing
80.PHONY: pass_packing
81.NOTPARALLEL: pass_packing
82pass_packing: defaultpacking
83
84
85#
86# perl specific.
87#
88
89.PHONY: depend veryclean
90.NOTPARALLEL: depend veryclean
91depend:
92 $(RMDIR) $(wildcard .depending ./*/.depending ./*/*/.depending ./*/*/*/.depending)
93 +$(GMAKE) MAKE=$(GMAKE) depend
94
95veryclean:
96 +$(GMAKE) MAKE=$(GMAKE) veryclean
97
Note: See TracBrowser for help on using the repository browser.