projects
/
open-adventure.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
580f409
)
Perform full code validation on every make check.
author
Eric S. Raymond
<esr@thyrsus.com>
Sun, 4 Feb 2024 17:48:33 +0000
(12:48 -0500)
committer
Eric S. Raymond
<esr@thyrsus.com>
Sun, 4 Feb 2024 17:48:33 +0000
(12:48 -0500)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index 7521a434dce61e7bd7b45c9d0b50392c5b93947d..978d5a8912c927cd7ffdf33191d22c8015e49e7d 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-65,7
+65,14
@@
clean:
cheat: $(CHEAT_OBJS) dungeon.o
$(CC) $(CCFLAGS) $(DBX) -o cheat $(CHEAT_OBJS) dungeon.o $(LDFLAGS) $(LIBS)
cheat: $(CHEAT_OBJS) dungeon.o
$(CC) $(CCFLAGS) $(DBX) -o cheat $(CHEAT_OBJS) dungeon.o $(LDFLAGS) $(LIBS)
-check: advent cheat
+CSUPPRESSIONS = --suppress=missingIncludeSystem --suppress=invalidscanf
+cppcheck:
+ @-cppcheck -I. --quiet --template gcc -UPROP_SET_SEEN --enable=all $(CSUPPRESSIONS) *.[ch]
+
+pylint:
+ @-pylint --score=n *.py */*.py
+
+check: advent cheat pylint cppcheck
cd tests; $(MAKE) --quiet
reflow:
cd tests; $(MAKE) --quiet
reflow:
@@
-151,9
+158,3
@@
debug: CCFLAGS += -fsanitize=address
debug: CCFLAGS += -fsanitize=undefined
debug: linty
debug: CCFLAGS += -fsanitize=undefined
debug: linty
-CSUPPRESSIONS = --suppress=missingIncludeSystem --suppress=invalidscanf
-cppcheck:
- cppcheck -I. --template gcc -UPROP_SET_SEEN --enable=all $(CSUPPRESSIONS) *.[ch]
-
-pylint:
- @pylint --score=n *.py */*.py