don't force the install->compile, compile->prepare dependencies in subdir.mk
[openwrt.git] / tools / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # Main makefile for the host tools
8 #
9
10 curdir:=$(patsubst %/Makefile,%,$(lastword $(MAKEFILE_LIST)))
11
12 # subdirectories to descend into
13 $(curdir)/builddirs := sed sstrip ipkg-utils ext2fs squashfs mtd-utils lzma mkimage firmware-utils patch-cmdline $(if $(CONFIG_CCACHE),ccache)
14
15 # builddir dependencies
16 $(curdir)/squashfs/compile := $(curdir)/lzma/install
17
18 # preparatory work
19 $(STAGING_DIR)/include-host/.done:
20 @mkdir -p $$(dirname $@)
21 @cp $(curdir)/include/*.h $$(dirname $@)/
22 @touch $@
23
24 # prerequisites for the individual targets
25 $(curdir)/ := .config
26 $(curdir)//prepare = $(STAGING_DIR)/include-host/.done
27 $(curdir)//compile = $(1)/prepare
28 $(curdir)//install = $(1)/compile
29
30 $(eval $(call stampfile,$(curdir),tools))
31 $(eval $(call subdir,$(curdir)))
This page took 0.044413 seconds and 5 git commands to generate.