diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2014-04-26 16:10:50 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2014-04-26 16:10:50 -0700 |
commit | 077994c12a8ac31bc9d910741b64d2bb444b2655 (patch) | |
tree | 66dba90705665aa692c11ecc278ff1de84b1db55 /Makefile.in | |
parent | 0dc0b8de9eb0bcd889da836ba2d1e1a943af3584 (diff) | |
download | tmwa-077994c12a8ac31bc9d910741b64d2bb444b2655.tar.gz tmwa-077994c12a8ac31bc9d910741b64d2bb444b2655.tar.bz2 tmwa-077994c12a8ac31bc9d910741b64d2bb444b2655.tar.xz tmwa-077994c12a8ac31bc9d910741b64d2bb444b2655.zip |
Stricter grep checks
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.in b/Makefile.in index c19fc1c..e2e3bca 100644 --- a/Makefile.in +++ b/Makefile.in @@ -459,17 +459,21 @@ obj/%.cpp.formatted: src/%.cpp tools/indenter $(MKDIR_FIRST) apply-filter 'indenter -cpp' $< fgrep -q Copyright $< + fgrep -q $(notdir $<) $< fgrep -q ../poison.hpp $< touch $@ obj/%.hpp.formatted: src/%.hpp tools/indenter $(MKDIR_FIRST) apply-filter 'indenter -cpp' $< fgrep -q Copyright $< + fgrep -q $(notdir $<) $< if [[ $< == *fwd* ]]; then fgrep -q ../sanity.hpp $<; else fgrep -q '"fwd.hpp"' $<; fi + if [[ $< == *fwd* ]]; then ! fgrep -q '"fwd.hpp"' $<; else ! fgrep -q ../sanity.hpp $<; fi touch $@ obj/%.tcc.formatted: src/%.tcc tools/indenter $(MKDIR_FIRST) apply-filter 'indenter -cpp' $< fgrep -q Copyright $< + fgrep -q $(notdir $<) $< touch $@ .PHONY: format format-cpp format-hpp |