summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2011-09-25 00:05:54 -0700
committerLuke Shumaker <lukeshu@sbcglobal.net>2011-09-25 00:05:54 -0700
commit11d588e4abde45f0f7e9533ca626ea5581836434 (patch)
treeacc5b59992709aeb2c02834f61e468070208eb3d /Makefile
parente4aace5f87690a170c18a8567faf501518c5dbf8 (diff)
meh do stuff
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..62429bb
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,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