diff options
| author | Paul Eggert | 2014-04-16 23:40:25 -0700 |
|---|---|---|
| committer | Paul Eggert | 2014-04-16 23:40:25 -0700 |
| commit | a3f989d4c430f4788352b2bad801ba99ccf2bb21 (patch) | |
| tree | 1aa551802fb10c8f5cad3a8ba0aca3d239f27305 /GNUmakefile | |
| parent | 8ac457d5edccc6cb72be90f1d8efc7389d1c824c (diff) | |
| download | emacs-a3f989d4c430f4788352b2bad801ba99ccf2bb21.tar.gz emacs-a3f989d4c430f4788352b2bad801ba99ccf2bb21.zip | |
* GNUmakefile: Speed up 'make bootstrap' in fresh checkout.
(ORDINARY_GOALS): New macro, which excludes 'bootstrap'.
(bootstrap, .PHONY): New rules.
* INSTALL.REPO: Document current procedure better.
Move copyright notice to just before license notice.
Diffstat (limited to 'GNUmakefile')
| -rw-r--r-- | GNUmakefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile index 22c57f5cb5b..b4b33f4dbb6 100644 --- a/GNUmakefile +++ b/GNUmakefile | |||
| @@ -55,7 +55,9 @@ else | |||
| 55 | # Once 'configure' exists, run it. | 55 | # Once 'configure' exists, run it. |
| 56 | # Finally, run the actual 'make'. | 56 | # Finally, run the actual 'make'. |
| 57 | 57 | ||
| 58 | default $(filter-out configure Makefile,$(MAKECMDGOALS)): Makefile | 58 | ORDINARY_GOALS = $(filter-out configure Makefile bootstrap,$(MAKECMDGOALS)) |
| 59 | |||
| 60 | default $(ORDINARY_GOALS): Makefile | ||
| 59 | $(MAKE) -f Makefile $(MAKECMDGOALS) | 61 | $(MAKE) -f Makefile $(MAKECMDGOALS) |
| 60 | # Execute in sequence, so that multiple user goals don't conflict. | 62 | # Execute in sequence, so that multiple user goals don't conflict. |
| 61 | .NOTPARALLEL: | 63 | .NOTPARALLEL: |
| @@ -72,5 +74,11 @@ Makefile: configure | |||
| 72 | ./configure | 74 | ./configure |
| 73 | @echo >&2 'Makefile built.' | 75 | @echo >&2 'Makefile built.' |
| 74 | 76 | ||
| 77 | # 'make bootstrap' in a fresh checkout needn't run 'configure' twice. | ||
| 78 | bootstrap: Makefile | ||
| 79 | $(MAKE) -f Makefile all | ||
| 80 | |||
| 81 | .PHONY: bootstrap default $(ORDINARY_GOALS) | ||
| 82 | |||
| 75 | endif | 83 | endif |
| 76 | endif | 84 | endif |