rename the "check" target to "checkstyle".

also created a new "check" target which runs all tests, as it is common with GNU programs
This commit is contained in:
mrdudz 2022-05-17 14:30:41 +02:00
parent 1a5852ab91
commit 75441afb71
3 changed files with 18 additions and 9 deletions

View File

@ -23,7 +23,7 @@ jobs:
- name: Do some simple style checks
shell: bash
run: make -j2 check
run: make -j2 checkstyle
- name: Build the tools.
shell: bash
run: make -j2 bin USER_CFLAGS=-Werror

View File

@ -48,7 +48,7 @@ jobs:
- name: Do some simple style checks
shell: bash
run: make -j2 check
run: make -j2 checkstyle
- name: Build the tools.
shell: bash
run: |

View File

@ -1,4 +1,4 @@
.PHONY: all mostlyclean clean install zip avail unavail bin lib doc html info samples test util check
.PHONY: all mostlyclean clean install zip avail unavail bin lib doc html info samples test util checkstyle check
.SUFFIXES:
@ -30,12 +30,6 @@ doc html info:
samples:
@$(MAKE) -C samples --no-print-directory $@
test:
@$(MAKE) -C test --no-print-directory $@
check:
@$(MAKE) -C .github/checks --no-print-directory $@
util:
@$(MAKE) -C util --no-print-directory $@
@ -44,3 +38,18 @@ util:
%:
@$(MAKE) -C libsrc --no-print-directory $@
# check the code style
checkstyle:
@$(MAKE) -C .github/checks --no-print-directory $@
# simple "test" target, only run regression tests for c64 target
test:
@$(MAKE) -C test --no-print-directory $@
# GNU "check" target, which runs all tests
check:
@$(MAKE) -C .github/checks --no-print-directory $@
@$(MAKE) test
@$(MAKE) -C targettest platforms --no-print-directory
@$(MAKE) -C samples platforms --no-print-directory