From 80fee71cbb24e2e0f26b284e57d703dd98993133 Mon Sep 17 00:00:00 2001 From: Sam Ravnborg Date: Fri, 22 Nov 2002 23:15:42 +0100 Subject: kbuild: Introduced build-targets build-targets is used to list targets that is always built. This allowed misuse of EXTRA_TARGETS to be deleted. built-in.o is now only created for directories defining a obj-* variable, avoiding this for scripts and lxdialog One Makefile needed a dummy obj- statement --- scripts/Makefile | 27 ++++----------------------- 1 file changed, 4 insertions(+), 23 deletions(-) (limited to 'scripts/Makefile') diff --git a/scripts/Makefile b/scripts/Makefile index 5ecc03a43242..25979b0efdb3 100644 --- a/scripts/Makefile +++ b/scripts/Makefile @@ -8,31 +8,12 @@ # docproc: Preprocess .tmpl file in order to generate .sgml documentation # conmakehash: Create arrays for initializing the kernel console tables -EXTRA_TARGETS := fixdep split-include docproc conmakehash +host-progs := fixdep split-include conmakehash docproc +build-targets := $(host-progs) +# Let clean descend into subdirs subdir- := lxdialog kconfig -# Yikes. We need to build this stuff here even if the user only wants -# modules. - -KBUILD_BUILTIN := 1 - -# The following temporary rule will make sure that people's -# trees get updated to the right permissions, since patch(1) -# can't do it -# --------------------------------------------------------------------------- - -host-progs := fixdep split-include conmakehash docproc - -include $(TOPDIR)/Rules.make - - -# --------------------------------------------------------------------------- -# Targets hardcoded and wellknow in top-level makefile -.PHONY: lxdialog -lxdialog: - $(call descend,scripts/lxdialog,) - # fixdep is needed to compile other host programs $(obj)/split-include $(obj)/docproc \ -$(obj)/conmakehash lxdialog: $(obj)/fixdep +$(obj)/conmakehash: $(obj)/fixdep -- cgit v1.2.3