@@ -48,8 +48,8 @@ help: VFLAGS := \
4848help : $(AWK_BIN ) /$(AWK )
4949 @$< $(VFLAGS ) $(AWK_FLAGS ) -f $(MAKEFILE_DOC ) $(MAKEFILE_LIST )
5050
51- .PHONY : test
5251# # Run integration tests
52+ .PHONY : test
5353test : $(INTEGRATION_TESTS )
5454
5555# # Run unit tests
@@ -66,13 +66,13 @@ utest: $(AWK_BIN)/$(AWK) $(MAKEFILE_DOC) $(UNIT_TESTS) $(UNIT_TEST_DIR)/unittest
6666 /dev/null
6767 @rm /tmp/.makefile-doc-stderr
6868
69- .PHONY : test-all-awk
7069# # Run integration tests with all supported awk variants
70+ .PHONY : test-all-awk
7171test-all :
7272 @$(foreach X,$(SUPPORTED_AWK_VARIANTS ) ,$(MAKE ) test AWK=$(X ) ;)
7373
74- .PHONY : utest-all-awk
7574# # Run unit tests with all supported awk variants
75+ .PHONY : utest-all-awk
7676utest-all :
7777 @$(foreach X,$(SUPPORTED_AWK_VARIANTS ) ,$(MAKE ) utest AWK=$(X ) ;)
7878
@@ -96,6 +96,7 @@ coverage-utests.html: utest
9696
9797# # Lint the code using `gawk`
9898# Warnings to ignore have been stripped below
99+ .PHONY : lint
99100lint : UNINIT := (|SUB|COLOR_.* |VARS|OFFSET|PADDING|DEPRECATED|RECIPEPREFIX|AWK|\
100101 | TARGETS_REGEX| VARIABLES_REGEX| OUTPUT_FORMAT| EXPORT_THEME| UNIT_TEST)
101102lint : override AWK := awk
@@ -123,14 +124,13 @@ check-variables:
123124clean-bin : # #! Remove all downloaded awk variants
124125 @rm -rf $(AWK_BIN )
125126
126- # # Remove coverage reports
127127.PHONY : clean
128- clean :
128+ clean : # # Remove coverage reports
129129 @rm -f $(COVER_FILE ) .all $(COVER_FILE ) .integration $(COVER_FILE ) .unit \
130130 coverage-tests.html coverage-utests.html coverage.html
131131
132- .PHONY : release
133132# #! Create github release at latest tag
133+ .PHONY : release
134134release : LATEST_TAG := $(shell git describe --tags)
135135release : RELEASE_NOTES := release_notes.md
136136release :
@@ -147,9 +147,9 @@ release:
147147# # Recipes:
148148# # ---------
149149
150- # Now we redirect to actual files because making sure that stderr and stdout
150+ # We redirect to actual files because making sure that stderr and stdout
151151# appear in the righ order with all AWK variants (in particular goawk) and on
152- # CI was problematic
152+ # CI was problematic otherwise
153153$(INTEGRATION_TESTS ) : FILE_CMD = /tmp/.makefile-doc_$@ _command
154154$(INTEGRATION_TESTS ) : FILE_EXPECTED = /tmp/.makefile-doc_$@ _expected
155155$(INTEGRATION_TESTS ) : FILE_ACTUAL = /tmp/.makefile-doc_$@ _actual
0 commit comments