summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-09-29 16:41:33 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-09-29 16:41:33 -0400
commit9a71d785746c454e67dbfa59d453aaa67e5f69b3 (patch)
treeb375446b4aae1305f7304b080a6f1504cb522bcd /Makefile
parent8191ee2ef1beadec0ce61651f8001ba91bc626c5 (diff)
use scss, save derived php files as patches, and inlude twentyeleven-fix.scss
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile43
1 files changed, 43 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..5abcf8e
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,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