Commit 4ac50075 authored by Tim Peters's avatar Tim Peters

Use immediate assignment to (greatly) speed the

heavily used utility variables that call out to a shell.
parent bd7730ee
BASE_DIR=$(shell pwd) # Use immediate assignment to avoid calling out to the shell a zillion times.
WIN_BASE_DIR=$(shell cygpath -w $(BASE_DIR)) BASE_DIR := $(shell pwd)
BUILD_DIR=$(BASE_DIR)/build WIN_BASE_DIR := $(shell cygpath -w $(BASE_DIR))
WIN_BUILD_DIR=$(shell cygpath -w $(BUILD_DIR)) BUILD_DIR := $(BASE_DIR)/build
SRC_DIR=$(BASE_DIR)/src WIN_BUILD_DIR := $(shell cygpath -w $(BUILD_DIR))
WIN_SRC_DIR=$(shell cygpath -w $(SRC_DIR)) SRC_DIR := $(BASE_DIR)/src
TMP_DIR=$(BASE_DIR)/tmp WIN_SRC_DIR := $(shell cygpath -w $(SRC_DIR))
WIN_TMP_DIR=$(shell cygpath -w $(TMP_DIR)) TMP_DIR := $(BASE_DIR)/tmp
WIN_MAKEFILEDIR=$(shell cygpath -w $(MAKEFILEDIR)) WIN_TMP_DIR := $(shell cygpath -w $(TMP_DIR))
WIN_MAKEFILEDIR := $(shell cygpath -w $(MAKEFILEDIR))
# Root of the Windows drive you're working on. The setting here is for # Root of the Windows drive you're working on. The setting here is for
# the C: drive and using a default out-of-the-box Cygwin. # the C: drive and using a default out-of-the-box Cygwin.
...@@ -63,4 +64,4 @@ define COPY_AND_WINDOWIZE_LINEENDS ...@@ -63,4 +64,4 @@ define COPY_AND_WINDOWIZE_LINEENDS
$(CP) $< $@ $(CP) $< $@
unix2dos $@ unix2dos $@
$(TOUCH) $@ $(TOUCH) $@
endef endef
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment