Forgot to patch this in, From Pavel Roskin:

1) The default target is now "all".  It would fail with a help message
if config.out is missing.  Both changes make the build system consistent
with Linux 2.6 behavior.

2) "make config" is on top of the help now.  We want to encourage users
to use interactive config and select the drivers they need.  It's now
described as "interactive configure" in order to distinguish it from
other *config targets.

3) New target "make help_noconfig" that only tells user about "make
*config" and "make help".

4) config.mk won't be built automatically if config.out is missing.
"make auto_config" would still work.

I realize that some users use custom scripts to build the driver, but
they should be OK.  "make all" and "make auto_config" still do what they
used to do.  The patch primarily affects interactive behavior.
This commit is contained in:
solomon 2005-02-24 17:59:10 +00:00
parent ba49dfc881
commit a6bd6d5e8f
1 changed files with 19 additions and 2 deletions

View File

@ -50,11 +50,13 @@ ETAGS=etags
ETAGSOPTS=-a
default: all
help:
@echo "Pick one of the following targets:"
@echo -e "\tmake config\t\t- interactive configure"
@echo -e "\tmake auto_config\t- automated configure"
@echo -e "\tmake default_config\t- automated configure using default config file"
@echo -e "\tmake config\t\t- configure and check system setup"
@echo -e "\tmake all\t\t- build modules and programs"
@echo -e "\tmake install\t\t- install modules and programs"
@echo -e "\tmake clean\t\t- remove old binaries and dependency files"
@ -63,6 +65,14 @@ help:
@echo -e "\tmake TAGS\t\t- generate etag files for source code"
@echo " "
help_noconfig:
@echo "You need to configure the source first"
@echo "Pick one of the following targets:"
@echo -e "\tmake config\t\t- interactive configure"
@echo -e "\tmake auto_config\t- automated configure"
@echo -e "\tmake default_config\t- automated configure using default config file"
@echo -e "\tmake help\t\t- show information about other targets"
all: config.mk
set -e; for d in $(DIRS); do $(MAKE) -C $$d ; done
@ -81,7 +91,7 @@ install:
find . -name .depend -exec rm {} \;
set -e; for d in $(DIRS); do $(MAKE) -C $$d install ; done
auto_config config.mk:
auto_config:
@touch config.mk config.new
@rm -f config.mk config.new
@./Configure -d
@ -95,6 +105,13 @@ config:
@touch config.mk
@./Configure
config.mk: config.out
$(MAKE) auto_config
config.out:
@$(MAKE) help_noconfig
@exit 1
tags: tags.linux dummy
if [ -r tags.linux ]; then cp tags.linux tags; fi
find . \