crossplatform.mk: add cygwin detection for disabling windows shell tools and path...
authorRejean Loyer <redj@ecere.com>
Fri, 6 Nov 2015 22:46:59 +0000 (17:46 -0500)
committerJerome St-Louis <jerome@ecere.com>
Thu, 28 Jul 2016 22:23:26 +0000 (18:23 -0400)
 - i.e.: git rebase -i --exec "git clean -xdf && make ENABLE_SSL=y EDASQLiteCipher=y -j 16" HEAD~

 - 'cd <dir-name> && $(MAKE)' vs 'cd <dir-name> && $(_MAKE)' -- gnu make is no longer nice enough to do as if there was a + in front of the rule, need to add it ourselves

Makefile
compiler/Makefile
compiler/bootstrap/Makefile
crossplatform.mk
deps/Makefile
ear/Makefile
ecere/Makefile
eda/Makefile

index 94ca401..3e249a8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -183,18 +183,18 @@ ifdef CROSS_TARGET
 endif
 
 bootstrap: outputdirs
-       cd compiler && $(MAKE) $(XBOOT) bootstrap
+       +cd compiler && $(_MAKE) $(XBOOT) bootstrap
 
 deps:
 ifdef CROSS_TARGET
 ifndef LINUX_HOST
        @$(call echo,Building dependencies (host)...)
-       cd deps && $(MAKE) $(XBOOT)
+       +cd deps && $(_MAKE) $(XBOOT)
 endif
 endif
 ifndef LINUX_TARGET
        @$(call echo,Building dependencies...)
-       cd deps && $(MAKE)
+       +cd deps && $(_MAKE)
 endif
 
 ecere: bootstrap deps
@@ -203,41 +203,41 @@ ifdef CROSS_TARGET
 else
        @$(call echo,Building 2nd stage ecere...)
 endif
-       cd ecere && $(MAKE) nores $(XBOOT)
-       cd ear && $(MAKE) nores $(XBOOT)
-       cd ecere && $(MAKE) cleaneceretarget
+       +cd ecere && $(_MAKE) nores $(XBOOT)
+       +cd ear && $(_MAKE) nores $(XBOOT)
+       +cd ecere && $(_MAKE) cleaneceretarget
 ifdef CROSS_TARGET
        @$(call echo,Building 2nd stage ecere...)
 endif
-       cd ecere && $(MAKE)
+       +cd ecere && $(_MAKE)
 
 ecerecom: bootstrap
 ifdef CROSS_TARGET
        @$(call echo,Building eC Core Runtime (host)...)
-       cd ecere && $(MAKE) -f Makefile.ecereCOM $(XBOOT)
+       +cd ecere && $(_MAKE) -f Makefile.ecereCOM $(XBOOT)
 endif
        @$(call echo,Building eC Core Runtime...)
-       cd ecere && $(MAKE) -f Makefile.ecereCOM
+       +cd ecere && $(_MAKE) -f Makefile.ecereCOM
 
 ecerevanilla: bootstrap
        @$(call echo,Building Vanilla Ecere...)
-       cd ecere && $(MAKE) -f Makefile.vanilla
+       +cd ecere && $(_MAKE) -f Makefile.vanilla
 
 ear: ecere ecerevanilla
        @$(call echo,Building ear...)
-       cd ear && cd cmd && $(MAKE) cleantarget
-       cd ear && $(MAKE)
+       +cd ear && cd cmd && $(_MAKE) cleantarget
+       +cd ear && $(_MAKE)
 
 fixprecompile:
-       cd compiler && $(MAKE) fixprecompile
+       +cd compiler && $(_MAKE) fixprecompile
 
 compiler: ecere ear
 ifdef CROSS_TARGET
        @$(call echo,Building 2nd stage compiler (host))
-       cd compiler && $(MAKE) $(XBOOT)
+       +cd compiler && $(_MAKE) $(XBOOT)
 endif
        @$(call echo,Building 2nd stage compiler)
-       cd compiler && $(MAKE)
+       +cd compiler && $(_MAKE)
 
 prepbinaries: compiler ecerecom
        @$(call echo,Enabling 2nd stage binaries...)
@@ -303,26 +303,26 @@ endif
 
 epj2make: prepbinaries
        @$(call echo,Building epj2make...)
-       cd epj2make && $(MAKE)
+       +cd epj2make && $(_MAKE)
 
 ecereaudio: prepbinaries
 ifneq ($(ECERE_AUDIO),n)
        @$(call echo,Building EcereAudio...)
-       cd audio && $(MAKE)
+       +cd audio && $(_MAKE)
 endif
 
 ide: prepbinaries
        @$(call echo,Building IDE...)
-       cd ide && $(MAKE)
+       +cd ide && $(_MAKE)
 
 documentor: prepbinaries
        @$(call echo,Building Documentor...)
-       cd documentor && $(MAKE)
+       +cd documentor && $(_MAKE)
 
 codeguard: prepcodeguard
 ifdef CodeGuard
        @$(call echo,Building CodeGuard client...)
-       cd codeGuard && $(MAKE)
+       +cd codeGuard && $(_MAKE)
 endif
 
 prepcodeguard: eda
@@ -347,10 +347,10 @@ endif
 eda: prepbinaries
 ifdef CROSS_TARGET
        @$(call echo,Building EDA (host))
-       cd eda && $(MAKE) $(XBOOT)
+       +cd eda && $(_MAKE) $(XBOOT)
 endif
        @$(call echo,Building EDA...)
-       cd eda && $(MAKE)
+       +cd eda && $(_MAKE)
 
 emptyoutput: outputdirs
        $(call rm,$(OBJLIBDIR)libecereVanilla$(A))
@@ -401,69 +401,69 @@ ifdef CodeGuard
 endif
 
 cleantarget:
-       cd compiler && $(MAKE) cleantarget
-       cd documentor && $(MAKE) cleantarget
-       cd ear && $(MAKE) cleantarget
-       cd ecere && $(MAKE) cleantarget
-       cd eda && $(MAKE) cleantarget
-       cd epj2make && $(MAKE) cleantarget
-       cd ide && $(MAKE) cleantarget
-       cd installer && $(MAKE) cleantarget
+       +cd compiler && $(_MAKE) cleantarget
+       +cd documentor && $(_MAKE) cleantarget
+       +cd ear && $(_MAKE) cleantarget
+       +cd ecere && $(_MAKE) cleantarget
+       +cd eda && $(_MAKE) cleantarget
+       +cd epj2make && $(_MAKE) cleantarget
+       +cd ide && $(_MAKE) cleantarget
+       +cd installer && $(_MAKE) cleantarget
 ifneq ($(ECERE_AUDIO),n)
-       cd audio && $(MAKE) cleantarget
+       +cd audio && $(_MAKE) cleantarget
 endif
 
 pots: cleantarget
-       $(MAKE) OUTPUT_POT=1
-       cd installer && $(MAKE) OUTPUT_POT=1 pots
+       $(_MAKE) OUTPUT_POT=1
+       +cd installer && $(_MAKE) OUTPUT_POT=1 pots
 
 ifdef WINDOWS_TARGET
 installer:
-       $(MAKE) prepinstall ARCH=
-       $(MAKE) prepinstall ARCH=x32
+       $(_MAKE) prepinstall ARCH=
+       $(_MAKE) prepinstall ARCH=x32
        @$(call echo,Building Ecere runtime for installer...)
-       cd ecere && @$(MAKE) -f Makefile.installer ARCH=x32
+       +cd ecere && @$(_MAKE) -f Makefile.installer ARCH=x32
        @$(call echo,Building Installer for Windows...)
-       cd installer && @$(MAKE) ARCH=x32
+       +cd installer && @$(_MAKE) ARCH=x32
        @$(call echo,The Ecere SDK Windows Installer is fully built.)
 endif
 
 clean: emptyoutput
 ifndef LINUX_TARGET
-       cd deps && $(MAKE) clean
-endif
-       cd ecere && $(MAKE) clean
-       cd compiler && $(MAKE) clean
-       cd ear && $(MAKE) clean
-       cd epj2make && $(MAKE) clean
-       cd ide && $(MAKE) clean
-       cd documentor && $(MAKE) clean
+       +cd deps && $(_MAKE) clean
+endif
+       +cd ecere && $(_MAKE) clean
+       +cd compiler && $(_MAKE) clean
+       +cd ear && $(_MAKE) clean
+       +cd epj2make && $(_MAKE) clean
+       +cd ide && $(_MAKE) clean
+       +cd documentor && $(_MAKE) clean
 ifneq ($(ECERE_AUDIO),n)
-       cd audio && $(MAKE) clean
+       +cd audio && $(_MAKE) clean
 endif
 ifdef CodeGuard
-       cd codeGuard && $(MAKE) clean
+       +cd codeGuard && $(_MAKE) clean
 endif
-       cd eda && $(MAKE) clean
+       +cd eda && $(_MAKE) clean
        @$(call echo,Done.)
 
 realclean: outputdirs
 ifndef LINUX_TARGET
-       cd deps && $(MAKE) realclean
-endif
-       cd ecere && $(MAKE) realclean
-       cd compiler && $(MAKE) realclean
-       cd ear && $(MAKE) realclean
-       cd epj2make && $(MAKE) realclean
-       cd ide && $(MAKE) realclean
-       cd documentor && $(MAKE) realclean
+       +cd deps && $(_MAKE) realclean
+endif
+       +cd ecere && $(_MAKE) realclean
+       +cd compiler && $(_MAKE) realclean
+       +cd ear && $(_MAKE) realclean
+       +cd epj2make && $(_MAKE) realclean
+       +cd ide && $(_MAKE) realclean
+       +cd documentor && $(_MAKE) realclean
 ifneq ($(ECERE_AUDIO),n)
-       cd audio && $(MAKE) realclean
+       +cd audio && $(_MAKE) realclean
 endif
 ifdef CodeGuard
-       cd codeGuard && $(MAKE) realclean
+       +cd codeGuard && $(_MAKE) realclean
 endif
-       cd eda && $(MAKE) realclean
+       +cd eda && $(_MAKE) realclean
        $(call rmr,obj/$(PLATFORM)/)
        @$(call echo,Done.)
 
@@ -853,28 +853,28 @@ updatebootstrap: regenbootstrap
 
 update_ecere:
        @echo Regenerating ecere bootstrapper...
-       cd ecere && $(MAKE) -f Makefile.bootstrap clean
-       cd ecere && $(MAKE) -f Makefile.bootstrap
+       +cd ecere && $(_MAKE) -f Makefile.bootstrap clean
+       +cd ecere && $(_MAKE) -f Makefile.bootstrap
 
 update_libec:
        @echo Regenerating ec bootstrapper...
-       cd compiler/libec && $(MAKE) -f Makefile.bootstrap clean
-       cd compiler/libec && $(MAKE) -f Makefile.bootstrap
+       +cd compiler/libec && $(_MAKE) -f Makefile.bootstrap clean
+       +cd compiler/libec && $(_MAKE) -f Makefile.bootstrap
 
 update_ecp:
        @echo Regenerating ecp bootstrapper...
-       cd compiler/ecp && $(MAKE) -f Makefile.bootstrap clean
-       cd compiler/ecp && $(MAKE) -f Makefile.bootstrap
+       +cd compiler/ecp && $(_MAKE) -f Makefile.bootstrap clean
+       +cd compiler/ecp && $(_MAKE) -f Makefile.bootstrap
 
 update_ecc:
        @echo Regenerating ecc bootstrapper...
-       cd compiler/ecc && $(MAKE) -f Makefile.bootstrap clean
-       cd compiler/ecc && $(MAKE) -f Makefile.bootstrap
+       +cd compiler/ecc && $(_MAKE) -f Makefile.bootstrap clean
+       +cd compiler/ecc && $(_MAKE) -f Makefile.bootstrap
 
 update_ecs:
        @echo Regenerating ecs bootstrapper...
-       cd compiler/ecs && $(MAKE) -f Makefile.bootstrap clean
-       cd compiler/ecs && $(MAKE) -f Makefile.bootstrap
+       +cd compiler/ecs && $(_MAKE) -f Makefile.bootstrap clean
+       +cd compiler/ecs && $(_MAKE) -f Makefile.bootstrap
 
 troubleshoot:
        @$(call echo,Printing values of some variables.)
@@ -890,6 +890,13 @@ troubleshoot:
        @$(call echo,WINDOWS_TARGET=$(WINDOWS_TARGET))
        @$(call echo,BSD_HOST=$(BSD_HOST))
        @$(call echo,BSD_TARGET=$(BSD_TARGET))
+       @$(call echo,OS=$(OS))
+       @$(call echo,OSTYPE=$(OSTYPE))
+       @$(call echo,BASH=$(BASH))
+       @$(call echo,TERM=$(TERM))
+       @$(call echo,SHELL=$(SHELL))
+       @$(call echo,WIN_SHELL_COMMANDS=$(WIN_SHELL_COMMANDS))
+       @$(call echo,WIN_PS_TOOLS=$(WIN_PS_TOOLS))
        @$(call echo,CCACHE=$(CCACHE))
        @$(call echo,CCACHE_COMPILE=$(CCACHE_COMPILE))
        @$(call echo,CCACHE_PREFIX=$(CCACHE_PREFIX))
@@ -915,3 +922,7 @@ troubleshoot:
        @$(call echo,DIR_VER=$(DIR_VER))
        @$(call echo,REPOSITORY_VER=$(REPOSITORY_VER))
        @$(call echo,CPPFLAGS=$(CPPFLAGS))
+       @$(call echo,OPENSSL_CONF=$(OPENSSL_CONF))
+       @$(call echo,OPENSSL_INCLUDE_DIR=$(OPENSSL_INCLUDE_DIR))
+       @$(call echo,OPENSSL_LIB_DIR=$(OPENSSL_LIB_DIR))
+       @$(call echo,OPENSSL_BIN_DIR=$(OPENSSL_BIN_DIR))
index 4f85892..8d262c4 100644 (file)
@@ -14,44 +14,44 @@ all: ecp ecc ecs
 
 libec:
        @$(call echo,Building 2nd stage libec...)
-       cd libec && $(MAKE)
+       +cd libec && $(_MAKE)
 
 ecp: libec
        @$(call echo,Building 2nd stage ecp...)
-       cd ecp && $(MAKE)
+       +cd ecp && $(_MAKE)
 
 ecc: libec
        @$(call echo,Building 2nd stage ecc...)
-       cd ecc && $(MAKE)
+       +cd ecc && $(_MAKE)
 
 ecs: libec
        @$(call echo,Building 2nd stage ecs...)
-       cd ecs && $(MAKE)
+       +cd ecs && $(_MAKE)
 
 bootstrap:
        @$(call echo,Bootstrapping eC compiling tools...)
-       cd bootstrap && $(MAKE)
+       +cd bootstrap && $(_MAKE)
 
 cleantarget:
-       cd bootstrap && $(MAKE) cleantarget
-       cd libec && $(MAKE) cleantarget
-       cd ecp && $(MAKE) cleantarget
-       cd ecc && $(MAKE) cleantarget
-       cd ecs && $(MAKE) cleantarget
+       +cd bootstrap && $(_MAKE) cleantarget
+       +cd libec && $(_MAKE) cleantarget
+       +cd ecp && $(_MAKE) cleantarget
+       +cd ecc && $(_MAKE) cleantarget
+       +cd ecs && $(_MAKE) cleantarget
 
 clean:
-       cd bootstrap && $(MAKE) clean
-       cd libec && $(MAKE) clean
-       cd ecp && $(MAKE) clean
-       cd ecc && $(MAKE) clean
-       cd ecs && $(MAKE) clean
+       +cd bootstrap && $(_MAKE) clean
+       +cd libec && $(_MAKE) clean
+       +cd ecp && $(_MAKE) clean
+       +cd ecc && $(_MAKE) clean
+       +cd ecs && $(_MAKE) clean
 
 realclean:
-       cd bootstrap && $(MAKE) realclean
-       cd libec && $(MAKE) realclean
-       cd ecp && $(MAKE) realclean
-       cd ecc && $(MAKE) realclean
-       cd ecs && $(MAKE) realclean
+       +cd bootstrap && $(_MAKE) realclean
+       +cd libec && $(_MAKE) realclean
+       +cd ecp && $(_MAKE) realclean
+       +cd ecc && $(_MAKE) realclean
+       +cd ecs && $(_MAKE) realclean
 
 distclean:
        $(MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs
index a5577d0..cd8efa2 100644 (file)
@@ -17,6 +17,26 @@ all: bindir ecere libec ecp ecc ecs
 bindir:
        $(if $(wildcard $(OBJ)),,$(call mkdir,$(OBJ)))
 
+ecere:
+       @$(call echo,Building ecere...)
+       +cd ecere && $(_MAKE)
+
+libec:
+       @$(call echo,Building ec...)
+       +cd libec && $(_MAKE)
+
+ecp: ecere libec
+       @$(call echo,Building ecp...)
+       +cd ecp && $(_MAKE)
+
+ecc: ecere libec
+       @$(call echo,Building ecc...)
+       +cd ecc && $(_MAKE)
+
+ecs: ecere libec
+       @$(call echo,Building ecs...)
+       +cd ecs && $(_MAKE)
+
 cleantarget: bindir
        $(call rm,$(OBJ)ecp$(E) $(OBJ)ecc$(E) $(OBJ)ecs$(E))
 ifdef WINDOWS_TARGET
@@ -24,19 +44,19 @@ ifdef WINDOWS_TARGET
 endif
 
 clean: cleantarget
-       cd ecere && $(MAKE) clean
-       cd libec && $(MAKE) clean
-       cd ecp && $(MAKE) clean
-       cd ecc && $(MAKE) clean
-       cd ecs && $(MAKE) clean
+       +cd ecere && $(_MAKE) clean
+       +cd libec && $(_MAKE) clean
+       +cd ecp && $(_MAKE) clean
+       +cd ecc && $(_MAKE) clean
+       +cd ecs && $(_MAKE) clean
 
 realclean: cleantarget
        $(call rmr,$(OBJ))
-       cd ecere && $(MAKE) realclean
-       cd libec && $(MAKE) realclean
-       cd ecp && $(MAKE) realclean
-       cd ecc && $(MAKE) realclean
-       cd ecs && $(MAKE) realclean
+       +cd ecere && $(_MAKE) realclean
+       +cd libec && $(_MAKE) realclean
+       +cd ecp && $(_MAKE) realclean
+       +cd ecc && $(_MAKE) realclean
+       +cd ecs && $(_MAKE) realclean
 
 distclean:
        $(MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs
@@ -44,23 +64,3 @@ distclean:
 Makefile: ;
 $(_CF_DIR)crossplatform.mk: ;
 $(_CF_DIR)default.cf: ;
-
-ecere:
-       @$(call echo,Building ecere...)
-       cd ecere && $(MAKE)
-
-libec:
-       @$(call echo,Building ec...)
-       cd libec && $(MAKE)
-
-ecp: ecere libec
-       @$(call echo,Building ecp...)
-       cd ecp && $(MAKE)
-
-ecc: ecere libec
-       @$(call echo,Building ecc...)
-       cd ecc && $(MAKE)
-
-ecs: ecere libec
-       @$(call echo,Building ecs...)
-       cd ecs && $(MAKE)
index bfe31a0..442f64d 100644 (file)
@@ -215,9 +215,11 @@ hs_crossloop = $(call hs_unsafe_crossloop,$(call fp_no_parent_dir,$(1)),$(2))
 
 # PATH SEPARATOR STRING TOOLS
 ifdef WINDOWS_HOST
-ifndef MSYSCON
-   WIN_PS_TOOLS := defined
-endif
+   ifneq ($(TERM),cygwin)
+      ifndef MSYSCON
+         WIN_PS_TOOLS := defined
+      endif
+   endif
 endif
 slash_path = $(subst $(backslash),$(slash),$(1))
 ifdef WIN_PS_TOOLS
@@ -269,11 +271,15 @@ _CPP = $(if $(findstring $(space),$(CPP)),"$(CPP)",$(CPP))
 
 _SYSROOT = $(if $(SYSROOT),$(space)--sysroot=$(SYSROOT),)
 
+_MAKE = $(call fp_opt_quotes,$(MAKE))
+
 # SHELL COMMANDS
 ifdef WINDOWS_HOST
-ifndef MSYSCON
-   WIN_SHELL_COMMANDS := defined
-endif
+   ifneq ($(TERM),cygwin)
+      ifndef MSYSCON
+         WIN_SHELL_COMMANDS := defined
+      endif
+   endif
 endif
 ifneq ($(V),1)
    SILENT_IS_ON := defined
index 98e228f..43b8723 100644 (file)
@@ -16,57 +16,57 @@ all: gif
 endif
 endif
 
-cleantarget:
-       cd freetype-2.3.12 && $(MAKE) cleantarget
-       cd libpng-1.6.12 && $(MAKE) cleantarget
-       cd zlib-1.2.8 && $(MAKE) cleantarget
-       cd jpeg-9a && $(MAKE) cleantarget
-       cd libungif-4.1.1 && $(MAKE) cleantarget
-       cd libffi-3.0.11 && $(MAKE) cleantarget
-
-clean:
-       cd freetype-2.3.12 && $(MAKE) clean
-       cd libpng-1.6.12 && $(MAKE) clean
-       cd zlib-1.2.8 && $(MAKE) clean
-       cd jpeg-9a && $(MAKE) clean
-       cd libungif-4.1.1 && $(MAKE) clean
-       cd libffi-3.0.11 && $(MAKE) clean
-
-realclean:
-       cd freetype-2.3.12 && $(MAKE) realclean
-       cd libpng-1.6.12 && $(MAKE) realclean
-       cd zlib-1.2.8 && $(MAKE) realclean
-       cd jpeg-9a && $(MAKE) realclean
-       cd libungif-4.1.1 && $(MAKE) realclean
-       cd libffi-3.0.11 && $(MAKE) realclean
-
-distclean:
-       $(MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs
-
-Makefile: ;
-$(_CF_DIR)crossplatform.mk: ;
-$(_CF_DIR)default.cf: ;
-
 freetype:
        @$(call echo,Building FreeType...)
-       cd freetype-2.3.12 && $(MAKE)
+       +cd freetype-2.3.12 && $(_MAKE)
        
 jpeg:
        @$(call echo,Building libjpeg...)
-       cd jpeg-9a && $(MAKE)
+       +cd jpeg-9a && $(_MAKE)
 
 png:
        @$(call echo,Building libpng...)
-       cd libpng-1.6.12 && $(MAKE)
+       +cd libpng-1.6.12 && $(_MAKE)
 
 gif:
        @$(call echo,Building libungif...)
-       cd libungif-4.1.1 && $(MAKE)
+       +cd libungif-4.1.1 && $(_MAKE)
 
 z:
        @$(call echo,Building zlib...)
-       cd zlib-1.2.8 && $(MAKE)
+       +cd zlib-1.2.8 && $(_MAKE)
 
 ffi:
        @$(call echo,Building libffi...)
-       cd libffi-3.0.11 && $(MAKE)
+       +cd libffi-3.0.11 && $(_MAKE)
+
+cleantarget:
+       +cd freetype-2.3.12 && $(_MAKE) cleantarget
+       +cd libpng-1.6.12 && $(_MAKE) cleantarget
+       +cd zlib-1.2.8 && $(_MAKE) cleantarget
+       +cd jpeg-9a && $(_MAKE) cleantarget
+       +cd libungif-4.1.1 && $(_MAKE) cleantarget
+       +cd libffi-3.0.11 && $(_MAKE) cleantarget
+
+clean:
+       +cd freetype-2.3.12 && $(_MAKE) clean
+       +cd libpng-1.6.12 && $(_MAKE) clean
+       +cd zlib-1.2.8 && $(_MAKE) clean
+       +cd jpeg-9a && $(_MAKE) clean
+       +cd libungif-4.1.1 && $(_MAKE) clean
+       +cd libffi-3.0.11 && $(_MAKE) clean
+
+realclean:
+       +cd freetype-2.3.12 && $(_MAKE) realclean
+       +cd libpng-1.6.12 && $(_MAKE) realclean
+       +cd zlib-1.2.8 && $(_MAKE) realclean
+       +cd jpeg-9a && $(_MAKE) realclean
+       +cd libungif-4.1.1 && $(_MAKE) realclean
+       +cd libffi-3.0.11 && $(_MAKE) realclean
+
+distclean:
+       $(MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs
+
+Makefile: ;
+$(_CF_DIR)crossplatform.mk: ;
+$(_CF_DIR)default.cf: ;
index 2fb182c..d02394e 100644 (file)
@@ -10,25 +10,25 @@ include $(_CF_DIR)default.cf
 
 all:
        @$(call echo,Building self-extract tool...)
-       cd extract && $(MAKE)
+       +cd extract && $(_MAKE)
        @$(call echo,Building eAR command line tool...)
-       cd cmd && $(MAKE)
+       +cd cmd && $(_MAKE)
 
 nores:
        @$(call echo,Building eAR command line tool...)
-       cd cmd && $(MAKE) nores
+       +cd cmd && $(_MAKE) nores
 
 cleantarget:
-       cd extract && $(MAKE) cleantarget
-       cd cmd && $(MAKE) cleantarget
+       +cd extract && $(_MAKE) cleantarget
+       +cd cmd && $(_MAKE) cleantarget
 
 clean:
-       cd extract && $(MAKE) clean
-       cd cmd && $(MAKE) clean
+       +cd extract && $(_MAKE) clean
+       +cd cmd && $(_MAKE) clean
 
 realclean:
-       cd extract && $(MAKE) realclean
-       cd cmd && $(MAKE) realclean
+       +cd extract && $(_MAKE) realclean
+       +cd cmd && $(_MAKE) realclean
 
 distclean:
        $(MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs
index 559fb07..9cec1a9 100644 (file)
@@ -2033,8 +2033,8 @@ ifdef LINUX_HOST
 endif
 endif
 endif
-       $(MAKE) -f Makefile.ecereCOM cleantarget
-       $(MAKE) -f Makefile.vanilla cleantarget
+       $(_MAKE) -f Makefile.ecereCOM cleantarget
+       $(_MAKE) -f Makefile.vanilla cleantarget
 
 clean: cleantarget
        $(call rm,$(_OBJECTS))
@@ -2053,13 +2053,13 @@ clean: cleantarget
        $(call rm,$(SYMBOLS1))
        $(call rm,$(SYMBOLS2))
        $(call rm,$(SYMBOLS3))
-       $(MAKE) -f Makefile.ecereCOM clean
-       $(MAKE) -f Makefile.vanilla clean
+       $(_MAKE) -f Makefile.ecereCOM clean
+       $(_MAKE) -f Makefile.vanilla clean
 
 realclean: cleantarget
        $(call rmr,$(OBJ))
-       $(MAKE) -f Makefile.ecereCOM realclean
-       $(MAKE) -f Makefile.vanilla realclean
+       $(_MAKE) -f Makefile.ecereCOM realclean
+       $(_MAKE) -f Makefile.vanilla realclean
 
 distclean:
        $(_MAKE) -f $(_CF_DIR)Cleanfile distclean distclean_all_subdirs
index 6c44e21..a8e6e2a 100644 (file)
@@ -10,33 +10,33 @@ include $(_CF_DIR)default.cf
 
 all:
        @$(call echo,Building Ecere Data Access layer...)
-       cd libeda && $(MAKE)
+       +cd libeda && $(_MAKE)
        @$(call echo,Building EDASQLite driver...)
-       cd drivers && cd sqlite && $(MAKE)
+       +cd drivers && cd sqlite && $(_MAKE)
 ifdef EDASQLiteCipher
        @$(call echo,Building EDASQLiteCipher driver...)
-       cd drivers && cd sqliteCipher && $(MAKE)
+       +cd drivers && cd sqliteCipher && $(_MAKE)
 endif
 
 cleantarget:
-       cd libeda && $(MAKE) cleantarget
-       cd drivers && cd sqlite && $(MAKE) cleantarget
+       +cd libeda && $(_MAKE) cleantarget
+       +cd drivers && cd sqlite && $(_MAKE) cleantarget
 ifdef EDASQLiteCipher
-       cd drivers && cd sqliteCipher && $(MAKE) cleantarget
+       +cd drivers && cd sqliteCipher && $(_MAKE) cleantarget
 endif
 
 clean:
-       cd libeda && $(MAKE) clean
-       cd drivers && cd sqlite && $(MAKE) clean
+       +cd libeda && $(_MAKE) clean
+       +cd drivers && cd sqlite && $(_MAKE) clean
 ifdef EDASQLiteCipher
-       cd drivers && cd sqliteCipher && $(MAKE) clean
+       +cd drivers && cd sqliteCipher && $(_MAKE) clean
 endif
 
 realclean:
-       cd libeda && $(MAKE) realclean
-       cd drivers && cd sqlite && $(MAKE) realclean
+       +cd libeda && $(_MAKE) realclean
+       +cd drivers && cd sqlite && $(_MAKE) realclean
 ifdef EDASQLiteCipher
-       cd drivers && cd sqliteCipher && $(MAKE) realclean
+       +cd drivers && cd sqliteCipher && $(_MAKE) realclean
 endif
 
 distclean: