Release coccinelle-0.2.0rc1
[bpt/coccinelle.git] / scripts / coccicheck / Makefile
index 6a03dd3..55fc0ee 100644 (file)
@@ -1,9 +1,9 @@
-PREFIX?=/tobedefine
-PROJECT?=/myproject
-SPFLAGS?="-timeout 60" # -use_glimpse -D diff
+PREFIX?=/home/npalix/Documents/build/coccinelle/scripts/coccicheck
+PROJECT?=/
+SPFLAGS?="-timeout 60 -use_glimpse -D org"
 
-COCCI?=/tobedefine/cocci
-RESULTS?=/tobedefine/results
+COCCI?=/home/npalix/Documents/build/coccinelle/scripts/coccicheck/cocci
+RESULTS?=/home/npalix/Documents/build/coccinelle/scripts/coccicheck/results
 
 .PHONY:: update viewlog viewfilteredlog viewres checkcocci
 .PHONY:: all clean distclean depend
@@ -15,7 +15,7 @@ update:
        ./bin/update_result_tree $(PREFIX) $(PROJECT) $(COCCI) $(RESULTS) $(SPFLAGS)
 
 viewlog:
-       find $(RESULTS) -name "*.log" | xargs cat | less
+       find $(RESULTS) -name "*.log" | xargs cat | pager
 
 viewfilteredlog:
        find $(RESULTS) -name "*.log" | xargs cat | \
@@ -34,10 +34,10 @@ viewfilteredlog:
                grep -v "not worth trying" | \
                grep -v "MultiFound field:" | \
                grep -ve "(ONCE) warning: I consider .* as a constant" | \
-               grep -ve "TYPE: header .* not found" 
+               grep -ve "TYPE: header .* not found"
 
 viewres:
-       find $(RESULTS) -name "*.out" | xargs less
+       find $(RESULTS) -name "*.out" | xargs pager
 
 checkcocci:
        for c in `find $(COCCI) -name "*.cocci"`; do spatch -parse_cocci $$c > /dev/null ; done
@@ -46,7 +46,7 @@ clean:
        find $(RESULTS) -name "*.out" -delete
        find $(RESULTS) -name "*.log" -delete
 
-distclean: 
+distclean:
        rm -rf $(RESULTS)
 
 depend: update