Makefile: Put default rule before local makefile.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 7 Jan 2009 19:04:36 +0000 (19:04 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 7 Jan 2009 19:04:36 +0000 (19:04 +0000)
Otherwise rules in local.mk become the default.

Makefile

index 04c9a4a..3780854 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,9 @@
 MAIN_M4_SOURCES                 =
 HOSTS                   =
 
+default: all
+.PHONY: default
+
 ###--------------------------------------------------------------------------
 ### Local configuration.
 
@@ -35,6 +38,7 @@ TARGETS                        = $(addsuffix .sh,$(HOSTS))
 ### Building.
 
 all: $(TARGETS)
+.PHONY: all
 
 %.sh: %.m4 $(M4_SOURCES)
        m4 -P base.m4 $*.m4 $(MAIN_M4_SOURCES) >$@.new
@@ -42,5 +46,6 @@ all: $(TARGETS)
        mv $@.new $@
 
 clean:; rm -f $(TARGETS) *.new
+.PHONY: clean
 
 ###----- That's all, folks --------------------------------------------------