diff options
author | Oswald Buddenhagen <oswald.buddenhagen@qt.io> | 2016-11-18 16:27:15 +0100 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@qt.io> | 2016-11-23 09:38:14 +0000 |
commit | 9bdb5b5ffea50b2e8d3deb9fd370c2fb5805e076 (patch) | |
tree | c8067d5c482534646a2734c1be07faab0fc7d106 /qmake/Makefile.unix.mingw | |
parent | 4ce0beee1b69a8695fc24a244a8a3053711906ac (diff) |
configure: put more of the makefile contents into template files
... instead of having (duplicated) code in the configures to create it.
Change-Id: Ia86b44021a024a969f5a49b7fb18d3d414869f93
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'qmake/Makefile.unix.mingw')
-rw-r--r-- | qmake/Makefile.unix.mingw | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/qmake/Makefile.unix.mingw b/qmake/Makefile.unix.mingw new file mode 100644 index 0000000000..2c52c07dca --- /dev/null +++ b/qmake/Makefile.unix.mingw @@ -0,0 +1,27 @@ +# SHELL is the full path of sh.exe, unless +# 1) it is found in the current directory +# 2) it is not found at all +# 3) it is overridden on the command line with an existing file +# ... otherwise it is always sh.exe. Specifically, SHELL from the +# environment has no effect. +# +# This check will fail if SHELL is explicitly set to a not +# sh-compatible shell. This is not a problem, because configure.bat +# will not do that. +ifeq ($(SHELL), sh.exe) + ifeq ($(wildcard $(CURDIR)/sh.exe), ) + SH = 0 + else + SH = 1 + endif +else + SH = 1 +endif + +ifeq ($(SH), 1) + RM_F = rm -f + RM_RF = rm -rf +else + RM_F = del /f + RM_RF = rmdir /s /q +endif |