From: Mark Wooding Date: Wed, 7 Jan 2009 19:04:36 +0000 (+0000) Subject: Makefile: Put default rule before local makefile. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/firewall/commitdiff_plain/0850e5080b3bfc2f34cc3945bf7d28f9185e7b4a?ds=inline;hp=-c Makefile: Put default rule before local makefile. Otherwise rules in local.mk become the default. --- 0850e5080b3bfc2f34cc3945bf7d28f9185e7b4a diff --git a/Makefile b/Makefile index 04c9a4a..3780854 100644 --- 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 --------------------------------------------------