blob: 5abcf8e7020dcf8d682325fa855520107d8fa649 (
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
38
39
40
41
42
43
|
RM = rm -f
CP = cp
PATCH = patch
SASS = sass
PHP = php
srcfiles = \
Makefile \
license.txt \
twentyeleven-fix.scss \
style.scss \
functions.php \
screenshot.png \
index.php.patch \
header.php.patch \
single.php.patch \
content-single.php
all: style.css .gitignore header.php index.php single.php
style.css: twentyeleven-fix.scss
%: %.patch ../twentyeleven/%
$(RM) $@
$(CP) ../twentyeleven/$@ $@
$(PATCH) $@ < $@.patch
%.css: %.scss
$(SASS) $< $@
%: %.php
$(PHP) -f $< > $@
%.png: %.svg
rsvg-convert $< > $@.$$$$ && pngcrush $@.$$$$ $@ ; $(RM) $@.$$$$
.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
|