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
commit6b26bca2593f258cadbca656924b4e6b5c40a7c7 (patch)
treeef6a78f7fa4e6041d2f590da045e994f993024c3 /Makefile
parent90d0a66ce3ca3e0edd696bdcab9854480783ff74 (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