summaryrefslogtreecommitdiff
path: root/Makefile
blob: a8184d0b479242a0f3e45aefe35b3b5cc6bf76a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
RM = rm -f
CP = cp
PATCH = patch
SASS = sass
PHP = php5

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' > '$@'