From a3ee12ad6b62a4258af2b09546194def7391048d Mon Sep 17 00:00:00 2001 From: Volker Grabsch Date: Sat, 8 Nov 2008 16:20:58 +0100 Subject: improved coding style --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index b58ebfa..2bf7be5 100644 --- a/Makefile +++ b/Makefile @@ -29,10 +29,6 @@ DOWNLOAD = \ .PHONY: all all: $(PKG_RULES) -.PHONY: clean -clean: - rm -rf $(call TMP_DIR,*) $(PREFIX)/* - define PKG_RULE .PHONY: $(1) $(1): $(PREFIX)/installed.$(1) @@ -52,13 +48,17 @@ $(PREFIX)/installed.$(1): $(addprefix $(PREFIX)/installed.,$($(1)_DEPS)) endef $(foreach PKG,$(PKG_RULES),$(eval $(call PKG_RULE,$(PKG),$(call TMP_DIR,$(PKG))))) +.PHONY: clean +clean: + rm -rf $(call TMP_DIR,*) $(PREFIX)/* + +.PHONY: update define UPDATE $(if $(2), \ $(SED) 's/^\([^ ]*_VERSION *:=\).*/\1 $(2)/' -i src/$(1).mk, \ $(error Unable to update version number: $(1))) endef -.PHONY: update update: $(foreach PKG,$(PKG_RULES),$(call UPDATE,$(PKG),$(shell $($(PKG)_UPDATE)))) -- cgit v0.12