summaryrefslogtreecommitdiff
path: root/Makefile
blob: 62429bb41845ddb40e3d7f1866c03fa573e0b2a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
RM = rm -f
CP = cp
PATCH = patch
SASS = sass
PHP = php5

srcfiles = \
	img/swoosh.png \
	style.scss \
	header.php.patch \
	Makefile \
	logo-style.scss.php \
	license.txt \
	css_shadow.php

all: header.php style.css .gitignore

style.css: logo-style.scss

%: %.patch ../twentyeleven/%
	$(RM) $@
	$(CP) ../twentyeleven/$@ $@
	$(PATCH) $@ < $@.patch

%.css: %.scss
	$(SASS) $< $@

%: %.php
	$(PHP) -f $< > $@

.gitignore: Makefile
	echo "# DO NOT EDIT, this file is automatically made by \`Makefile'" >$@
	echo '# '                 >> '$@'
	echo '# ignore everyting' >> '$@'
	echo '*'                  >> '$@'
	echo '# but these:'       >> '$@'
	for file in $(srcfiles); do echo !"$$file" >> '$@'; done