diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2011-10-23 17:09:17 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2011-10-23 17:09:17 -0400 |
commit | 40bef9550687ed2b5a0c55feafc0b0dd015177e2 (patch) | |
tree | 1b4096e2bafa20074f177606fd3d5b1b7dbdef40 | |
parent | a580549d814adf828bf2bc6461a5572183ba114c (diff) |
Add some developer tools to Makefile (check for syntax errors, check required classes.)
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | Makefile | 9 |
2 files changed, 11 insertions, 0 deletions
@@ -7,6 +7,8 @@ conf.php xss-check.php .htaccess +dev-* + *.bak *~ .sass-cache/*
\ No newline at end of file @@ -9,3 +9,12 @@ all: style.css screen.css print.css %.css: %.scss $(SASS) $< $@ +# These are for developers +dev-grep-require.txt: src + echo '$@' > '$@' + grep -r 'require_once' '$<'|sed "s/^\([^:]*\):.*require_once('\([A-Za-z]*\)\.class\.php').*/\1:\t\2/"|grep -Ev '(require_once|Singleton)'|sort -u >> '$@' +dev-grep-singleton.txt: src + echo '$@' > '$@' + grep -r '::getInstance' '$<'|sed 's/^\([^:]*\):.*[^A-Za-z]\([A-Za-z]*\)::getInstance(.*/\1:\t\2/'|sort -u >> '$@' +dev-lint.txt: src + -find '$<' -name '*.php' -exec '$(PHP)' -l '{}' \; |grep -v '^No syntax errors detected in' > '$@' |