[svn:parrot] r39174 - trunk/config/gen/makefiles
petdance at svn.parrot.org
petdance at svn.parrot.org
Tue May 26 05:55:15 UTC 2009
Author: petdance
Date: Tue May 26 05:55:15 2009
New Revision: 39174
URL: https://trac.parrot.org/parrot/changeset/39174
Log:
The splint-andy target is now just 'splint', vs. 'splint-all' which works on the entire tree
Modified:
trunk/config/gen/makefiles/root.in
Modified: trunk/config/gen/makefiles/root.in
==============================================================================
--- trunk/config/gen/makefiles/root.in Tue May 26 05:52:21 2009 (r39173)
+++ trunk/config/gen/makefiles/root.in Tue May 26 05:55:15 2009 (r39174)
@@ -740,6 +740,7 @@
@echo " bsdlint: Code checking with bsdlint."
@echo " sunlint: Code checking with Sun Studio's sunlint."
@echo " splint: Code checking with splint."
+ @echo " splint-all: Splint all of Parrot, for the masochist only."
@echo " headerizer: Recreate header files for C-source files"
@echo " apilist: Show list of PARROT_EXPORT functions"
@echo " malloclist: Show list of PARROT_MALLOC functions"
@@ -2062,18 +2063,25 @@
# added to splint target to simplify experimentation,
# ex: make SPLINTFLAGS_TEST='-posixstrictlib +posixlib' splint
-splint : $(PARROT)
+SPLINT_SOURCE := `echo $(O_FILES) | $(PERL) -pe @PQ at s/\.o/\.c/g at PQ@`
+
+splint-all : $(PARROT)
$(MKPATH) $(SPLINT_TMP)
- $(SPLINT) $(CC_INC) @cc_hasjit@ "-Isrc/pmc" "-Icompilers/ast" $(SPLINTFLAGS) $(SPLINTFLAGS_TEST) `echo $(O_FILES) | $(PERL) -pe @PQ at s/\.o/\.c/g at PQ@`
+ $(SPLINT) $(CC_INC) @cc_hasjit@ "-Isrc/pmc" "-Icompilers/ast" $(SPLINTFLAGS) $(SPLINTFLAGS_TEST) \
+ $(SPLINT_SOURCE) \
$(SPLINT) $(CC_INC) $(SPLINTFLAGS) $(SPLINTFLAGS_TEST) $(IMCC_DIR)/main.c
-# Test a single file with limited splint options to ease cleanup -petdance
-splint-andy :
+# "splint" is the less-thorough splint target. For cage cleaning work,
+# you'll probably want to specify SPLINT_SOURCE rather than work on the
+# entire tree, like so:
+# make splint SPLINT_SOURCE='src/call/*.c'
+
+splint : all
$(MKPATH) $(SPLINT_TMP)
- splint $(CC_INC) @cc_hasjit@ -DNDEBUG "-Isrc/pmc" "-Icompilers/ast" $(SPLINTFLAGS) $(SPLINTFLAGS_TEST) \
- +partial \
- src/oo.c src/key.c \
- | grep -v 'Source code error generation point'
+ $(SPLINT) $(CC_INC) @cc_hasjit@ "-Isrc/pmc" "-Icompilers/ast" $(SPLINTFLAGS) $(SPLINTFLAGS_TEST) \
+ +partial -DNDEBUG \
+ $(SPLINT_SOURCE) \
+ | grep -v 'Source code error generation point'
COVER_FLAGS := -fprofile-arcs -ftest-coverage
COVER_DIRS := \
More information about the parrot-commits
mailing list