diff options
author | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2006-04-10 17:02:49 +0100 |
---|---|---|
committer | kaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk> | 2006-04-10 17:02:49 +0100 |
commit | b5fa90ac8ea579eb2b4223051e3c35d78a7b28b2 (patch) | |
tree | 51768b133193fd10c1ea4d715f000163a107018a /xen/Rules.mk | |
parent | 0198288b1f5f296f043439bd647877effb870df7 (diff) | |
parent | 224cab0dfd3e7696fec21acf5e0cd821328fbe49 (diff) | |
download | xen-b5fa90ac8ea579eb2b4223051e3c35d78a7b28b2.tar.gz xen-b5fa90ac8ea579eb2b4223051e3c35d78a7b28b2.tar.bz2 xen-b5fa90ac8ea579eb2b4223051e3c35d78a7b28b2.zip |
build: Clean up use of .PHONY
* Move .PHONY directives next to targets,
this makes them a lot harder to miss
* Add missing .PHONY directives
* Remove nonexistent .PHONY directives
* Hopefully I didn'T miss anything...
Signed-Off-By: Horms <horms@verge.net.au>
Diffstat (limited to 'xen/Rules.mk')
-rw-r--r-- | xen/Rules.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xen/Rules.mk b/xen/Rules.mk index 1f4687f7fa..82449c344f 100644 --- a/xen/Rules.mk +++ b/xen/Rules.mk @@ -86,13 +86,15 @@ subdir-all := $(subdir-y) $(subdir-n) built_in.o: $(obj-y) $(LD) $(LDFLAGS) -r -o $@ $^ +# Force execution of pattern rules (for which PHONY cannot be directly used). .PHONY: FORCE FORCE: %/built_in.o: FORCE $(MAKE) -f $(BASEDIR)/Rules.mk -C $* built_in.o -clean:: $(addprefix _clean_, $(subdir-all)) FORCE +.PHONY: clean +clean:: $(addprefix _clean_, $(subdir-all)) rm -f *.o *~ core _clean_%/: FORCE $(MAKE) -f $(BASEDIR)/Rules.mk -C $* clean |