Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[enhance] Makefile: always rebuild cache file if not on WINDOWS

  • Loading branch information...
commit b1e94a2b6f09ba60493c7c6eba750ec3fadbaf9d 1 parent c143c68
@Aqua-Ye Aqua-Ye authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 Makefile
View
6 Makefile
@@ -136,10 +136,12 @@ endef
# List all packages and plugins in stdlib
# caches are needed because too slow on cygwin/msys
+
OPA_PACKAGES_CACHE = _build/OPA_PACKAGES.cache
+OPA_PACKAGES := $(shell mkdir -p _build; if [ ! -f $(OPA_PACKAGES_CACHE) ] || [ ! $(IS_WINDOWS) ]; then $(OPALANG_DIR)/lib/stdlib/all_packages.sh $(OPALANG_DIR)/lib/stdlib/node.exclude $(OPALANG_DIR)/lib/stdlib > $(OPA_PACKAGES_CACHE); fi; cat $(OPA_PACKAGES_CACHE))
+
OPA_PLUGINS_CACHE = _build/OPA_PLUGINS.cache
-OPA_PACKAGES := $(shell mkdir -p _build; if [ ! -f $(OPA_PACKAGES_CACHE) ]; then $(OPALANG_DIR)/lib/stdlib/all_packages.sh $(OPALANG_DIR)/lib/stdlib/node.exclude $(OPALANG_DIR)/lib/stdlib > $(OPA_PACKAGES_CACHE); fi; cat $(OPA_PACKAGES_CACHE))
-OPA_PLUGINS := $(shell if [ ! -f $(OPA_PLUGINS_CACHE) ]; then $(OPALANG_DIR)/lib/stdlib/all_plugins.sh $(OPALANG_DIR)/lib/stdlib > $(OPA_PLUGINS_CACHE); fi; cat $(OPA_PLUGINS_CACHE) && echo opabsl)
+OPA_PLUGINS := $(shell if [ ! -f $(OPA_PLUGINS_CACHE) ] || [ ! $(IS_WINDOWS) ]; then $(OPALANG_DIR)/lib/stdlib/all_plugins.sh $(OPALANG_DIR)/lib/stdlib > $(OPA_PLUGINS_CACHE); fi; cat $(OPA_PLUGINS_CACHE) && echo opabsl)
# Rules installing everything that has been compiled
Please sign in to comment.
Something went wrong with that request. Please try again.