From af3ab64dd671ec59cc44f58490401b96f48c66bc Mon Sep 17 00:00:00 2001 From: Cyril Hrubis Date: Tue, 15 Oct 2013 23:02:02 +0200 Subject: [PATCH] build: Add check make target. Which just runs check_symbols.sh script which looks if there are any symbols exported by mistake. Signed-off-by: Cyril Hrubis --- build/check_symbols.sh | 2 ++ post.mk | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/build/check_symbols.sh b/build/check_symbols.sh index 245b3242..641df387 100755 --- a/build/check_symbols.sh +++ b/build/check_symbols.sh @@ -76,4 +76,6 @@ if [ -n "$FOUND" ]; then echo "Set them static or update lists of exported functions in syms/Foo_symbols.txt" echo echo "$WARN" +else + echo "No unexpected symbols found :)" fi diff --git a/post.mk b/post.mk index 0b9fc905..dbc6d136 100644 --- a/post.mk +++ b/post.mk @@ -29,12 +29,18 @@ help: @echo "" @echo "rebuild: does clean and all" @echo "" + @echo "check: do pre-commit check" + @echo " (currently checks for exported symbols)" + @echo "" @echo "The default silent output could be turned off by defining" @echo "'VERBOSE' shell variable as 'VERBOSE=1 make'" @echo "" doc: - cd doc && make + @cd $(TOPDIR)/doc && make + +check: + @cd $(TOPDIR)/build && ./check_symbols.sh # # Determine mode (eg do not generate anything if not in compile mode -- 2.11.4.GIT