introduced $(PHONY) and fix strip on macos

This commit is contained in:
Stefano D'Angelo 2025-05-22 15:41:49 +02:00
parent 31a0e8925e
commit e3a39dbb6e
6 changed files with 28 additions and 21 deletions

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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:

View File

@ -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

View File

@ -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: