2007-07-01 19:04:20 +00:00
|
|
|
# Makefile for the tools/ sub-directory
|
|
|
|
|
|
|
|
# Here, we can update the config.* scripts.
|
|
|
|
# If we're in CT_LIB_DIR, then CT_LIB_DIR == CT_TOP_DIR, and we can update those
|
|
|
|
# scripts for later inclusion mainline. If CT_LIB_DIR != CT_TOP_DIR, then those
|
|
|
|
# scripts are downloaded only for use in CT_TOP_DIR.
|
|
|
|
|
2008-10-27 18:42:26 +00:00
|
|
|
# ----------------------------------------------------------
|
|
|
|
# The tools help entry
|
|
|
|
|
|
|
|
help-distrib::
|
|
|
|
@echo ' updatetools - Update the config tools'
|
|
|
|
|
|
|
|
# ----------------------------------------------------------
|
|
|
|
# Where to get tools from, and where to store them into
|
|
|
|
# The tools are: config.guess and config.sub
|
|
|
|
|
2008-05-08 15:36:51 +00:00
|
|
|
CONFIG_SUB_SRC="http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD"
|
2008-11-13 17:34:44 +00:00
|
|
|
CONFIG_SUB_DEST=tools/config.sub
|
2008-05-08 15:36:51 +00:00
|
|
|
CONFIG_GUESS_SRC="http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD"
|
2008-11-13 17:34:44 +00:00
|
|
|
CONFIG_GUESS_DEST=tools/config.guess
|
2007-02-24 11:00:05 +00:00
|
|
|
|
2008-11-13 17:34:44 +00:00
|
|
|
# Kludge: we have a step that is called 'tools', and thus we can not define a
|
|
|
|
# rule here that is named 'tools'. Naming it 'tools/' does not help either.
|
|
|
|
# Thus, prepend the top directory to have a single rule description. This is
|
|
|
|
# not as bad as it seems, because it is only refered to by teo rules in this
|
|
|
|
# file, but still it is a kludge...
|
2007-07-01 19:04:20 +00:00
|
|
|
$(CT_TOP_DIR)/tools:
|
2008-11-13 17:34:44 +00:00
|
|
|
$(SILENT)mkdir -p tools
|
2007-07-01 19:04:20 +00:00
|
|
|
|
|
|
|
PHONY += updatetools
|
2008-11-13 17:34:44 +00:00
|
|
|
updatetools: $(CONFIG_SUB_DEST) $(CONFIG_GUESS_DEST)
|
2007-07-01 19:04:20 +00:00
|
|
|
|
2008-10-27 18:42:26 +00:00
|
|
|
# ----------------------------------------------------------
|
|
|
|
# How to retrieve the tools
|
|
|
|
|
2008-11-13 17:34:44 +00:00
|
|
|
wget_opt=-o /dev/null
|
|
|
|
ifeq ($(strip $(V)),2)
|
|
|
|
wget_opt=
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(CONFIG_SUB_DEST): .FORCE $(CT_TOP_DIR)/tools
|
|
|
|
@$(ECHO) ' WGET $@'
|
|
|
|
$(SILENT)wget $(wget_opt) -O $@ $(CONFIG_SUB_SRC)
|
Cheesy kconfig stuff:
- silent/quiet/verbose build:
- ct-ng by default only prints quit messages, such as "CC xxx",
- if using V=0, nothing is printed,
- if using V=1, the full command lines are printed,
- other values are indeterminate,
- should help in debugging the kconfig stuff;
- complete kconfig/{,m}conf generation:
- fully dynamic dependencies on source files,
- compilation of .c into .o, then linking (instead of direct linking),
- VPATH usage when not --local;
Typo + a coment moved.
/trunk/kconfig/kconfig.mk | 140 87 53 0 +++++++++++++++++++++++++++++++++--------------------
/trunk/tools/tools.mk | 12 6 6 0 ++--
/trunk/steps.mk | 6 3 3 0 +-
/trunk/samples/samples.mk | 30 15 15 0 +++++-----
/trunk/ct-ng.in | 40 28 12 0 +++++++++++----
5 files changed, 139 insertions(+), 89 deletions(-)
2008-10-15 21:29:56 +00:00
|
|
|
$(SILENT)chmod u+rwx,go+rx-w $@
|
2007-07-01 19:04:20 +00:00
|
|
|
|
2008-11-13 17:34:44 +00:00
|
|
|
$(CONFIG_GUESS_DEST): .FORCE $(CT_TOP_DIR)/tools
|
|
|
|
@$(ECHO) ' WGET $@'
|
|
|
|
$(SILENT)wget $(wget_opt) -O $@ $(CONFIG_GUESS_SRC)
|
Cheesy kconfig stuff:
- silent/quiet/verbose build:
- ct-ng by default only prints quit messages, such as "CC xxx",
- if using V=0, nothing is printed,
- if using V=1, the full command lines are printed,
- other values are indeterminate,
- should help in debugging the kconfig stuff;
- complete kconfig/{,m}conf generation:
- fully dynamic dependencies on source files,
- compilation of .c into .o, then linking (instead of direct linking),
- VPATH usage when not --local;
Typo + a coment moved.
/trunk/kconfig/kconfig.mk | 140 87 53 0 +++++++++++++++++++++++++++++++++--------------------
/trunk/tools/tools.mk | 12 6 6 0 ++--
/trunk/steps.mk | 6 3 3 0 +-
/trunk/samples/samples.mk | 30 15 15 0 +++++-----
/trunk/ct-ng.in | 40 28 12 0 +++++++++++----
5 files changed, 139 insertions(+), 89 deletions(-)
2008-10-15 21:29:56 +00:00
|
|
|
$(SILENT)chmod u+rwx,go+rx-w $@
|
2007-02-24 11:00:05 +00:00
|
|
|
|
2008-10-27 18:42:26 +00:00
|
|
|
# ----------------------------------------------------------
|
|
|
|
# Clean up the mess
|
2007-07-01 19:04:20 +00:00
|
|
|
|
|
|
|
distclean::
|
2008-10-21 16:13:46 +00:00
|
|
|
@$(ECHO) " CLEAN tools"
|
Cheesy kconfig stuff:
- silent/quiet/verbose build:
- ct-ng by default only prints quit messages, such as "CC xxx",
- if using V=0, nothing is printed,
- if using V=1, the full command lines are printed,
- other values are indeterminate,
- should help in debugging the kconfig stuff;
- complete kconfig/{,m}conf generation:
- fully dynamic dependencies on source files,
- compilation of .c into .o, then linking (instead of direct linking),
- VPATH usage when not --local;
Typo + a coment moved.
/trunk/kconfig/kconfig.mk | 140 87 53 0 +++++++++++++++++++++++++++++++++--------------------
/trunk/tools/tools.mk | 12 6 6 0 ++--
/trunk/steps.mk | 6 3 3 0 +-
/trunk/samples/samples.mk | 30 15 15 0 +++++-----
/trunk/ct-ng.in | 40 28 12 0 +++++++++++----
5 files changed, 139 insertions(+), 89 deletions(-)
2008-10-15 21:29:56 +00:00
|
|
|
$(SILENT)[ $(CT_TOP_DIR) = $(CT_LIB_DIR) ] || rm -rf $(CT_TOP_DIR)/tools
|