]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
build: make lint depends on autogenerated Lua files
authorMarek Vavruša <mvavrusa@cloudflare.com>
Sun, 26 Nov 2017 01:03:48 +0000 (17:03 -0800)
committerPetr Špaček <petr.spacek@nic.cz>
Tue, 28 Nov 2017 10:21:16 +0000 (11:21 +0100)
Lint should always render the .lua from .lua.in files before checking.

Makefile

index 86064e0b0228ef6a8fbd9eb63f30b2fb077c80a5..3af15b389e423ec1d1032778ead99d2f34adc2c4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ check: all tests
 clean: contrib-clean lib-clean daemon-clean client-clean modules-clean \
        tests-clean doc-clean bench-clean
 doc: doc-html
-lint:
+lint: $(patsubst %.lua.in,%.lua,$(wildcard */*/*.lua.in))
        luacheck --codes --formatter TAP .
 coverage: $(wildcard */*/luacov.stats.out)
        @echo "# C coverage in gcov.c.info"