Makefile: fix 'lesson-fixme' target for Windows (#486)
authorMaxim Belkin <maxim.belkin@gmail.com>
Tue, 11 Aug 2020 13:03:01 +0000 (08:03 -0500)
committerGitHub <noreply@github.com>
Tue, 11 Aug 2020 13:03:01 +0000 (09:03 -0400)
Git for Windows doesn't provide fgrep, which is a shortcut
to call `grep -F` on Mac and Linux. Instead, we have to use
full arguments.

Makefile

index 7d2130fa51a92b377607df0b2da75d82978b6f1b..b585662ce1d299f5bca302fb53c12a623f9ea536 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -146,7 +146,7 @@ lesson-files :
 
 ## * lesson-fixme     : show FIXME markers embedded in source files
 lesson-fixme :
 
 ## * lesson-fixme     : show FIXME markers embedded in source files
 lesson-fixme :
-       @fgrep -i -n FIXME ${MARKDOWN_SRC} || true
+       @grep --fixed-strings --word-regexp --line-number --no-messages FIXME ${MARKDOWN_SRC} || true
 
 ##
 ## IV. Auxililary (plumbing) commands
 
 ##
 ## IV. Auxililary (plumbing) commands