projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added ifxmips reset button to default config options
[openwrt.git]
/
include
/
subdir.mk
diff --git
a/include/subdir.mk
b/include/subdir.mk
index
68afcc4
..
d62df7e
100644
(file)
--- a/
include/subdir.mk
+++ b/
include/subdir.mk
@@
-17,6
+17,10
@@
define subtarget
endef
endef
+
+lastdir=$(word $(words $(subst /, ,$(1))),$(subst /, ,$(1)))
+diralias=$(if $(findstring $(1),$(call lastdir,$(1))),,$(call lastdir,$(1)))
+
# Parameters: <subdir>
define subdir
$(call warn,$(1),d,D $(1))
# Parameters: <subdir>
define subdir
$(call warn,$(1),d,D $(1))
@@
-29,6
+33,8
@@
define subdir
# legacy targets
$(call warn_eval,$(1)/$(bd),l,T,$(1)/$(bd)-$(target): $(1)/$(bd)/$(target))
# legacy targets
$(call warn_eval,$(1)/$(bd),l,T,$(1)/$(bd)-$(target): $(1)/$(bd)/$(target))
+ # aliases
+ $(if $(call diralias,$(bd)),$(call warn_eval,$(1)/$(bd),l,T,$(1)/$(call diralias,$(bd))/$(target): $(1)/$(bd)/$(target)))
)
)
$(foreach target,$(SUBTARGETS),$(call subtarget,$(1),$(target)))
)
)
$(foreach target,$(SUBTARGETS),$(call subtarget,$(1),$(target)))
This page took
0.021559 seconds
and
4
git commands to generate.