mirror of
https://github.com/djhackersdev/bemanitools.git
synced 2025-01-31 12:13:42 +01:00
build: add volatile_$module variable for targets that need to be always rebuilt
This commit is contained in:
parent
e40709ddf7
commit
387dc046f4
@ -37,6 +37,8 @@ ldflags := -Wl,--gc-sections -static-libgcc
|
|||||||
|
|
||||||
all: build
|
all: build
|
||||||
|
|
||||||
|
FORCE:
|
||||||
|
|
||||||
.PHONY: \
|
.PHONY: \
|
||||||
build-docker \
|
build-docker \
|
||||||
clean \
|
clean \
|
||||||
@ -44,7 +46,8 @@ code-format \
|
|||||||
print-building \
|
print-building \
|
||||||
print-release \
|
print-release \
|
||||||
run-tests \
|
run-tests \
|
||||||
version
|
version \
|
||||||
|
FORCE
|
||||||
|
|
||||||
release: \
|
release: \
|
||||||
print-release \
|
print-release \
|
||||||
@ -193,6 +196,8 @@ $$(depdir_$1_$2_$3):
|
|||||||
$$(objdir_$1_$2_$3):
|
$$(objdir_$1_$2_$3):
|
||||||
$(V)mkdir -p $$@
|
$(V)mkdir -p $$@
|
||||||
|
|
||||||
|
$$(volatile_$3:%.c=$$(objdir_$1_$2_$3)/%.o): FORCE
|
||||||
|
|
||||||
$$(objdir_$1_$2_$3)/%.o: $$(srcdir_$3)/%.c \
|
$$(objdir_$1_$2_$3)/%.o: $$(srcdir_$3)/%.c \
|
||||||
| $$(depdir_$1_$2_$3) $$(objdir_$1_$2_$3)
|
| $$(depdir_$1_$2_$3) $$(objdir_$1_$2_$3)
|
||||||
$(V)echo ... $$@
|
$(V)echo ... $$@
|
||||||
|
Loading…
x
Reference in New Issue
Block a user