projects
/
openwrt
/
svn-archive
/
archive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6f88eaa
)
fix target profiles, (closes: 2440)
author
Gabor Juhos
<juhosg@openwrt.org>
Wed, 3 Oct 2007 19:22:51 +0000
(19:22 +0000)
committer
Gabor Juhos
<juhosg@openwrt.org>
Wed, 3 Oct 2007 19:22:51 +0000
(19:22 +0000)
SVN-Revision: 9113
include/target.mk
patch
|
blob
|
history
diff --git
a/include/target.mk
b/include/target.mk
index 1f17883ab17d062fc240179fe7fb88eb78db0bab..0217fcff6ff287d6a3a36303ac0a8276e6b806ef 100644
(file)
--- a/
include/target.mk
+++ b/
include/target.mk
@@
-1,4
+1,4
@@
-#
+#
# Copyright (C) 2007 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# Copyright (C) 2007 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
@@
-75,10
+75,22
@@
define Profile
endif
endef
endif
endef
-if
eq ($(if $(TARGET_BUILD),$(DUMP)),1
)
- -include $(PLATFORM_DIR)/profiles/*.mk
- ifneq ($(PLATFORM_DIR),$(PLATFORM_SUBDIR))
+if
neq ($(PLATFORM_DIR),$(PLATFORM_SUBDIR)
)
+ define IncludeProfiles
+ -include $(PLATFORM_DIR)/profiles/*.mk
-include $(PLATFORM_SUBDIR)/profiles/*.mk
-include $(PLATFORM_SUBDIR)/profiles/*.mk
+ endef
+else
+ define IncludeProfiles
+ -include $(PLATFORM_DIR)/profiles/*.mk
+ endef
+endif
+
+ifeq ($(TARGET_BUILD),1)
+ $(eval $(call IncludeProfiles))
+else
+ ifeq ($(DUMP),)
+ $(eval $(call IncludeProfiles))
endif
endif
endif
endif