Makefile: add recipe `full` to build examples and programs.
authorJean Privat <jean@pryen.org>
Tue, 26 Aug 2014 17:14:39 +0000 (13:14 -0400)
committerJean Privat <jean@pryen.org>
Wed, 27 Aug 2014 01:25:23 +0000 (21:25 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

Makefile

index ef24ecb..bc06e15 100644 (file)
--- a/Makefile
+++ b/Makefile
 
 NITCOPT=
 
+# Additional program directories (contrib and examples) that are buildable
+PROGS=$(dir $(wildcard examples/*/Makefile contrib/*/Makefile))
+
 all: tools
 
+# Compile all programs in $PROGS
+full: all
+       for m in $(PROGS); do $(MAKE) -C "$$m" || exit 1; done
+
 docs: doc/stdlib/index.html doc/nitc/index.html
 
 tools: