diff options
author | Sam Ravnborg <sam@mars.ravnborg.org> | 2003-03-10 00:47:49 +0100 |
---|---|---|
committer | Sam Ravnborg <sam@mars.ravnborg.org> | 2003-03-10 00:47:49 +0100 |
commit | 0be6a9a0863c2c1a99f0747c6283450b699dcaf9 (patch) | |
tree | 724a6ae04bfd7ed1ac6682d26986c123736b1c46 /scripts | |
parent | 196114799714b39ee7f4fddef379dfe0ad6886f5 (diff) | |
download | history-0be6a9a0863c2c1a99f0747c6283450b699dcaf9.tar.gz |
kbuild: Use targets := to tell kbuild about additional targets
EXTRA_TARGETS served several purposes before:
1) List targets to be build (built-in only)
2) Inform kbuild of targets within the makefile
Mixing the above are causing confusion, so for now on
targets :=
is used to inform kbuild about targets in a Makefile - that it otherwise
did not know about.
kbuild uses the "targets :=" information to:
a) read the dependency file .target.cmd
b) delete the target file during make clean
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile | 2 | ||||
-rw-r--r-- | scripts/Makefile.clean | 1 | ||||
-rw-r--r-- | scripts/Makefile.lib | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/scripts/Makefile b/scripts/Makefile index 3b00318d0bc61f..cf1ba16eb69c8e 100644 --- a/scripts/Makefile +++ b/scripts/Makefile @@ -32,4 +32,4 @@ quiet_cmd_elfconfig = MKELF $@ $(obj)/elfconfig.h: $(obj)/empty.o $(obj)/mk_elfconfig FORCE $(call if_changed,elfconfig) -targets += $(obj)/elfconfig.h +targets += elfconfig.h diff --git a/scripts/Makefile.clean b/scripts/Makefile.clean index b88e5e494a499c..38079baa96a03b 100644 --- a/scripts/Makefile.clean +++ b/scripts/Makefile.clean @@ -29,6 +29,7 @@ subdir-ymn := $(sort $(subdir-ym) $(subdir-n) $(subdir-)) # Add subdir path EXTRA_TARGETS := $(addprefix $(obj)/,$(EXTRA_TARGETS)) +targets := $(addprefix $(obj)/,$(targets)) clean-files := $(addprefix $(obj)/,$(clean-files)) host-progs := $(addprefix $(obj)/,$(host-progs)) subdir-ymn := $(addprefix $(obj)/,$(subdir-ymn)) diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 6877b8bd9c850e..4570f739628e80 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -86,6 +86,7 @@ host-cshobjs := $(sort $(foreach m,$(host-cshlib),$($(m:.so=-objs)))) EXTRA_TARGETS := $(addprefix $(obj)/,$(EXTRA_TARGETS)) build-targets := $(addprefix $(obj)/,$(build-targets)) +targets := $(addprefix $(obj)/,$(targets)) obj-y := $(addprefix $(obj)/,$(obj-y)) obj-m := $(addprefix $(obj)/,$(obj-m)) subdir-obj-y := $(addprefix $(obj)/,$(subdir-obj-y)) |