# $Id: Makefile.kmk 3223 2007-04-29 18:02:22Z bird $ DEPTH = ../../.. include $(PATH_KBUILD)/header.kmk GMAKE ?= $(PATH_KBUILD_BIN)/kmk_gmake$(HOSTSUFF_EXE) EXTRAS := ifndef NOT_BOOTSTRAPPING_KNIX EXTRAS := -Dgmake=$(GMAKE) \ -Dmake=$(GMAKE) endif ifeq ($(BUILD_TYPE),debug) EXTRAS += -Doptimize='-g' endif ifdef PERL_SH_DIR $(error This is gonna cause trouble: PERL_SH_DIR=$(PERL_SH_DIR)) endif # # The usual targets. # # configuring .PHONY: config config: $(RM) -f config.sh Policy.sh EMXSHELL="$(ASH)" \ ./Configure -des \ -Dprefix=/@unixroot/usr \ -Dvendorprefix=/@unixroot/usr \ -Dsiteprefix=/@unixroot/usr \ -Dscriptdir=/@unixroot/usr/bin \ -Dman1dir=/@unixroot/usr/share/man/man1 \ -Dman3dir=/@unixroot/usr/share/man/man3 \ -Dinstallman1dir=/@unixroot/usr/share/man/man1 \ -Dinstallman3dir=/@unixroot/usr/share/man/man3 \ -Dpager=/@unixroot/usr/bin/less.exe \ $(EXTRAS) \ -Dd_dirfd='undef' \ -Dcf_by='kNIX' # building .PHONY: build build: +$(GMAKE) MAKE=$(GMAKE) # testing .PHONY: check test check test: +$(GMAKE) MAKE=$(GMAKE) test # installation .PHONY: install install: +$(GMAKE) MAKE=$(GMAKE) \ INSTALLPREFIXEXP=$(PATH_INS)/usr \ bin=$(PATH_INS)/usr/bin \ scriptdir=$(PATH_INS)/usr/bin \ shrpdir=$(PATH_INS)/usr/lib/perl5/5.8.8/os2/CORE \ privlib=$(PATH_INS)/usr/lib/perl5/5.8.8 \ man1dir=$(PATH_INS)/usr/share/man/man1 \ man3dir=$(PATH_INS)/usr/share/man/man3 \ \ DESTDIR=$(PATH_INS) \ INSTALLFLAGS="-V" \ \ install # packing .PHONY: pass_packing pass_packing: defaultpacking # # perl specific. # .PHONY: depend depend: $(RMDIR) $(wildcard .depending ./*/.depending ./*/*/.depending ./*/*/*/.depending) +$(GMAKE) MAKE=$(GMAKE) depend