summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-03-08 14:30:14 +0000
committerJim Meyering <jim@meyering.net>2003-03-08 14:30:14 +0000
commit79065539ddeb8be6b51b74e65737728229f0b574 (patch)
treed251fa5a5d5906729c7b006d24ebb0dfd7d8931e /src
parenteff5758aaf9e5c5269aa7c21f80925e680204be1 (diff)
downloadcoreutils-79065539ddeb8be6b51b74e65737728229f0b574.tar.xz
(check-misc): Check for use of `defined' in #define directives.
Change to $(srcdir) before running grep.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index d804e4133..3c230bfe2 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -211,8 +211,9 @@ check-README:
# even in comments, but for now it does the job with no false positives.
.PHONY: check-misc
check-misc:
- grep '^# *define *S_IS' $(SOURCES) && exit 1 || :
- grep st_blocks $(SOURCES) && exit 1 || :
+ cd $(srcdir); grep '^# *define *S_IS' $(SOURCES) && exit 1 || :
+ cd $(srcdir); grep st_blocks $(SOURCES) && exit 1 || :
+ cd $(srcdir); grep '^# *define .*defined' $(SOURCES) && exit 1 || :
# Extract the list of authors from each file.
sed_filter = s/^ *//;s/N_ (//;s/^"//;s/")*$$//