aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Li <sparse@chrisli.org>2017-09-01 10:14:21 -0400
committerChristopher Li <sparse@chrisli.org>2017-10-06 18:01:56 -0400
commitd7b626ac9ef5373edf892d8f49307b1b2f528398 (patch)
treeaf8c6ad6fda1279beb032f1968efeafc4109c0f5
parentb3da1bddd27f689e4cc57e52a5d9bb2c1e4fd20f (diff)
downloadsparse-debug-target-v4.tar.gz
Makefile: introduce minimal targetdebug-target-v4
"minimal" target will only build program used by the test-suite. The "all" target will build both release and debug. The default target is "minimal" Signed-off-by: Christopher Li <sparse@chrisli.org>
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index b012a49a..7a86cdc8 100644
--- a/Makefile
+++ b/Makefile
@@ -196,10 +196,10 @@ ALL_PROGRAMS := $(REL_PROGRAMS) $(DBG_PROGRAMS)
INST_PROGRAMS += $(REL_PROGRAMS) \
$(filter-out $(addprefix dbgbuild/,$(REL_PROGRAMS)),$(DBG_PROGRAMS))
-all: $(REL_PROGRAMS) sparse.pc
-
+minimal: $(REL_PROGRAMS)
release: $(PROGRAMS)
debug: $(DBG_PROGRAMS)
+all: release debug sparse.pc
all-installable: $(INST_PROGRAMS) $(LIBS) $(LIB_H) sparse.pc
@@ -278,7 +278,7 @@ dist:
fi
git archive --format=tar --prefix=sparse-$(VERSION)/ HEAD^{tree} | gzip -9 > sparse-$(VERSION).tar.gz
-check: all debug
+check: all
$(Q)cd validation && ./test-suite
clean-check: