projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use . /var/state/network instead of config_load to avoid a CONFIG_SECTIONS reset
[openwrt.git]
/
tools
/
Makefile
diff --git
a/tools/Makefile
b/tools/Makefile
index
9c31554
..
68e7dab
100644
(file)
--- a/
tools/Makefile
+++ b/
tools/Makefile
@@
-7,7
+7,7
@@
# Main makefile for the host tools
#
include $(TOPDIR)/rules.mk
# Main makefile for the host tools
#
include $(TOPDIR)/rules.mk
-TARGETS-y:=sed sstrip ipkg-utils ext2fs squashfs mtd-utils lzma mkimage firmware-utils
+TARGETS-y:=sed sstrip ipkg-utils ext2fs squashfs mtd-utils lzma mkimage firmware-utils
patch-cmdline
TARGETS-$(CONFIG_CCACHE) += ccache
TARGETS_DOWNLOAD:=$(patsubst %,%-download,$(TARGETS-y))
TARGETS-$(CONFIG_CCACHE) += ccache
TARGETS_DOWNLOAD:=$(patsubst %,%-download,$(TARGETS-y))
@@
-32,17
+32,26
@@
endif
$(STAMP): $(TOPDIR)/.config
mkdir -p $(shell dirname $@)
touch $@
$(STAMP): $(TOPDIR)/.config
mkdir -p $(shell dirname $@)
touch $@
-
-$(STAGING_DIR)/include-host:
- @mkdir -p $@
- @$(CP) ./include/*.h $@/
+
+TOOL_HOST_INCLUDES:=$(patsubst ./include/%.h,$(STAGING_DIR)/include-host/%.h,$(wildcard ./include/*.h))
+$(TOOL_HOST_INCLUDES): $(STAGING_DIR)/include-host/%.h: ./include/%.h
+ @mkdir -p $(STAGING_DIR)/include-host
+ $(CP) $< $@
$(TOOL_BUILD_DIR):
@mkdir -p $@
$(TOOL_BUILD_DIR):
@mkdir -p $@
-$(TARGETS_COMPILE) $(TARGETS_INSTALL): $(STAGING_DIR)/include-host $(TOOL_BUILD_DIR)
+%-prereq %-download %-clean %-refresh %-update: FORCE
+ $(MAKE) -C $* $(patsubst $*-%,%,$@)
-$(eval $(call default_subtargets,))
+%-prepare: $(TOOL_HOST_INCLUDES) $(TOOL_BUILD_DIR) FORCE
+ $(MAKE) -C $* $(patsubst $*-%,%,$@)
+
+%-compile: %-prepare FORCE
+ $(MAKE) -C $* $(patsubst $*-%,%,$@)
+
+%-install: %-compile FORCE
+ $(MAKE) -C $* $(patsubst $*-%,%,$@)
ifeq ($(MAKECMDGOALS),install-targets)
MAKEFLAGS:=$(MAKEFLAGS) -j$(CONFIG_JLEVEL)
ifeq ($(MAKECMDGOALS),install-targets)
MAKEFLAGS:=$(MAKEFLAGS) -j$(CONFIG_JLEVEL)
This page took
0.019889 seconds
and
4
git commands to generate.