]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
Improve version.mk a bit to use $(call quiet,,)
authorOndřej Surý <ondrej@sury.org>
Wed, 26 Oct 2016 10:05:21 +0000 (12:05 +0200)
committerOndřej Surý <ondrej@sury.org>
Wed, 26 Oct 2016 10:05:21 +0000 (12:05 +0200)
modules/version/version.mk

index 624c7c027fe8f6a25b76019a2749bd473865efdc..41d3234700678a0def200a5029eb037f37d65a26 100644 (file)
@@ -1,6 +1,11 @@
 version_SOURCES := version.lua
 
 modules/version/version.lua: modules/version/version.lua.in
-       $(SED) -e "s/@VERSION@/$(VERSION)/" < "$<" > "$@"
+       @$(call quiet,SED,$<) -e "s/@VERSION@/$(VERSION)/" $< > $@
 
 $(call make_lua_module,version)
+
+version-clean:
+       @$(call quiet,RM,modules/version/version.lua) modules/version/version.lua
+
+.PHONY: version-clean