diff --git a/templates/android-make/Makefile b/templates/android-make/Makefile index b6a2b6f..5fec1f4 100644 --- a/templates/android-make/Makefile +++ b/templates/android-make/Makefile @@ -115,6 +115,8 @@ DIRS := build build/gen build/apk build/obj build/apk/lib build/apk/lib/armeabi- ALL := build/$(BUNDLE_NAME).apk +PHONY := all clean install + -include $(MKINC_DIR)/vars-extra.mk all: $(ALL) @@ -156,7 +158,7 @@ install: build/$(BUNDLE_NAME).apk -include $(MKINC_DIR)/rules-extra.mk -.PHONY: all clean install +.PHONY: $(PHONY) .SECONDEXPANSION: diff --git a/templates/cmd-make/Makefile b/templates/cmd-make/Makefile index 6368b1c..37197dd 100644 --- a/templates/cmd-make/Makefile +++ b/templates/cmd-make/Makefile @@ -79,8 +79,12 @@ DIRS := build build/obj ALL := build/$(PROGRAM) STRIP_ALL := build/$(PROGRAM) -STRIP_PHONY := -STRIP_PREREQS := $(STRIP_ALL) $(STRIP_PHONY) +STRIP_PREREQS := $(STRIP_ALL) + +PHONY := all clean strip +ifneq ($(OS), Windows_NT) + PHONY := $(PHONY) install +endif -include $(MKINC_DIR)/vars-extra.mk @@ -103,16 +107,14 @@ clean: strip: $(STRIP_PREREQS) strip build/$(PROGRAM) -ifeq ($(OS), Windows_NT) -.PHONY: all clean strip $(STRIP_PHONY) -else +ifneq ($(OS), Windows_NT) install: all mkdir -m 0755 -p $(BINDIR) install -m 0755 build/$(PROGRAM) $(BINDIR) - -.PHONY: all clean strip $(STRIP_PHONY) install endif +.PHONY: $(PHONY) + -include $(MKINC_DIR)/rules-extra.mk .SECONDEXPANSION: diff --git a/templates/lv2-make/Makefile b/templates/lv2-make/Makefile index 7d7177c..35d97c3 100644 --- a/templates/lv2-make/Makefile +++ b/templates/lv2-make/Makefile @@ -93,8 +93,9 @@ DIRS := build build/$(BUNDLE_DIR) build/obj ALL := build/$(BUNDLE_DIR)/manifest.ttl build/$(BUNDLE_DIR)/$(DLL_FILE) STRIP_ALL := build/$(BUNDLE_DIR)/$(DLL_FILE) build/$(BUNDLE_DIR)/manifest.ttl -STRIP_PHONY := -STRIP_PREREQS := $(STRIP_ALL) $(STRIP_PHONY) +STRIP_PREREQS := $(STRIP_ALL) + +.PHONY: all clean strip install install-user -include $(MKINC_DIR)/vars-extra.mk @@ -118,7 +119,7 @@ clean: rm -fr build strip: $(STRIP_PREREQS) - strip build/$(BUNDLE_DIR)/$(DLL_FILE) + strip -Sx build/$(BUNDLE_DIR)/$(DLL_FILE) #Reaper can't handle this #rdfproc lv2_store parse build/$(BUNDLE_DIR)/manifest.ttl turtle || (rm lv2_store* && exit 1) #rdfproc lv2_store serialize ntriples > build/$(BUNDLE_DIR)/manifest.ttl || (rm lv2_store* && exit 1) @@ -159,7 +160,7 @@ install-user: all -include $(MKINC_DIR)/rules-extra.mk -.PHONY: all clean strip $(STRIP_PHONY) install install-user +.PHONY: $(PHONY) .SECONDEXPANSION: diff --git a/templates/vst3-make/Makefile b/templates/vst3-make/Makefile index ec82afc..9cd38be 100644 --- a/templates/vst3-make/Makefile +++ b/templates/vst3-make/Makefile @@ -114,8 +114,9 @@ ifeq ($(UNAME_S), Darwin) endif STRIP_ALL := build/$(BUNDLE_DIR)/$(DLL_FILE) -STRIP_PHONY := -STRIP_PREREQS := $(STRIP_ALL) $(STRIP_PHONY) +STRIP_PREREQS := $(STRIP_ALL) + +PHONY := all clean strip install install-user -include $(MKINC_DIR)/vars-extra.mk @@ -144,7 +145,7 @@ clean: rm -fr build strip: $(STRIP_PREREQS) - strip build/$(BUNDLE_DIR)/$(DLL_FILE) + strip -Sx build/$(BUNDLE_DIR)/$(DLL_FILE) install: all @for d in `find build/$(BUNDLE_DIR) -type d`; do \ @@ -176,7 +177,7 @@ install-user: all -include $(MKINC_DIR)/rules-extra.mk -.PHONY: all clean strip $(STRIP_PHONY) install install-user +.PHONY: $(PHONY) .SECONDEXPANSION: diff --git a/templates/web-demo/vars-extra-web-demo.mk b/templates/web-demo/vars-extra-web-demo.mk index 1b9a852..51321d7 100644 --- a/templates/web-demo/vars-extra-web-demo.mk +++ b/templates/web-demo/vars-extra-web-demo.mk @@ -21,5 +21,5 @@ ALL := $(ALL) build/web/index.html build/web/cert.pem build/web/key.pem STRIP_ALL := $(STRIP_ALL) build/web/index.html -STRIP_PHONY := $(STRIP_PHONY) strip-web-demo -STRIP_PREREQS := $(STRIP_ALL) $(STRIP_PHONY) +STRIP_PREREQS := $(STRIP_PREREQS) strip-web-demo +PHONY := $(PHONY) strip-web-demo diff --git a/templates/web-make/Makefile b/templates/web-make/Makefile index 6be8d7b..66526f3 100644 --- a/templates/web-make/Makefile +++ b/templates/web-make/Makefile @@ -86,8 +86,9 @@ DIRS := build build/obj build/web build/web/$(BUNDLE_NAME) ALL := build/web/$(BUNDLE_NAME)/module.wasm build/web/$(BUNDLE_NAME)/processor.js build/web/$(BUNDLE_NAME)/module.js STRIP_ALL := build/web/$(BUNDLE_NAME)/module.wasm build/web/$(BUNDLE_NAME)/processor.js build/web/$(BUNDLE_NAME)/module.js -STRIP_PHONY := -STRIP_PREREQS := $(STRIP_ALL) $(STRIP_PHONY) +STRIP_PREREQS := $(STRIP_ALL) + +PHONY := all clean strip -include $(MKINC_DIR)/vars-extra.mk @@ -121,7 +122,7 @@ strip: $(STRIP_PREREQS) -include $(MKINC_DIR)/rules-extra.mk -.PHONY: all clean strip $(STRIP_PHONY) +.PHONY: $(PHONY) .SECONDEXPANSION: