Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
try checkwhitespace as auto-tester target
Browse files Browse the repository at this point in the history
  • Loading branch information
rainers committed Jul 3, 2015
1 parent 6d5b30e commit 39a16bc
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion posix.mak
Expand Up @@ -206,6 +206,14 @@ test/%/.run: test/%/Makefile
$(QUIET)$(MAKE) -C test/$* MODEL=$(MODEL) OS=$(OS) DMD=$(abspath $(DMD)) \
DRUNTIME=$(abspath $(DRUNTIME)) DRUNTIMESO=$(abspath $(DRUNTIMESO)) QUIET=$(QUIET) LINKDL=$(LINKDL)

#################### test for undesired white spaces ##########################
MAKEFILES = $(filter mak/% %.mak,$(MANIFEST))
NOT_MAKEFILES = $(filter-out $(MAKEFILES),$(MANIFEST))

checkwhitespace:
grep -n -e "[ \t]$$" -e "\r" $(MAKEFILES) ; test "$$?" -ne 0
grep -n -e " $$" -e "\r|\t" $(NOT_MAKEFILES) ; test "$$?" -ne 0

detab:
detab $(MANIFEST)
tolf $(MANIFEST)
Expand All @@ -231,7 +239,7 @@ test/%/.clean: test/%/Makefile
$(MAKE) -C test/$* clean

.PHONY : auto-tester-build
auto-tester-build: target
auto-tester-build: target checkwhitespace

.PHONY : auto-tester-test
auto-tester-test: unittest
Expand Down

0 comments on commit 39a16bc

Please sign in to comment.