Skip to content

Commit 235b26d

Browse files
authored
Merge pull request #1713 from wilzbach/check-undefined
Search for undefined macros
2 parents 7d8e147 + 9042169 commit 235b26d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

posix.mak

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -615,10 +615,11 @@ $(PHOBOS_STABLE_FILES_GENERATED): $(PHOBOS_STABLE_DIR_GENERATED)/%: $(PHOBOS_STA
615615
# Style tests
616616
################################################################################
617617

618-
test: $(ASSERT_WRITELN_BIN)_test
618+
test: $(ASSERT_WRITELN_BIN)_test all
619619
@echo "Searching for trailing whitespace"
620-
@echo "Check for trailing whitespace"
621-
grep -n '[[:blank:]]$$' $$(find . -type f -name "*.dd") ; test $$? -eq 1
620+
@grep -n '[[:blank:]]$$' $$(find . -type f -name "*.dd") ; test $$? -eq 1
621+
@echo "Searching for undefined macros"
622+
@grep -n "UNDEFINED MACRO" $$(find $(DOC_OUTPUT_DIR) -type f -name "*.html" -not -path "$(DOC_OUTPUT_DIR)/phobos/*") ; test $$? -eq 1
622623
@echo "Executing assert_writeln_magic tests"
623624
$<
624625

0 commit comments

Comments
 (0)