summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2019-04-05 07:22:25 -0400
committerrsiddharth <s@ricketyspace.net>2019-04-05 07:22:25 -0400
commitcb7884f2ea8ea287ba2075fc3c007ad247e02a98 (patch)
tree6553713d5f86d2486aceba3e7c3217a71807b674 /Makefile
parentdedfbdf7d246bd2f5501eef4a19d6201ec81800e (diff)
Add Makefile.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile39
1 files changed, 39 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..4565ad3
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,39 @@
+BUILD_DIR=_build
+CSS_DIR=$(BUILD_DIR)/assets/css
+IMG_DIR=$(BUILD_DIR)/assets/img
+
+SCSS=scss/fsfi.scss
+CSS=$(CSS_DIR)/fsfi.css
+
+site: $(BUILD_DIR) css img html
+.PHONY: site
+
+
+html: $(BUILD_DIR)
+ rsync -a html/ $(BUILD_DIR)/
+.PHONY: html
+
+img: $(BUILD_DIR)
+ rsync -a img/ $(IMG_DIR)/
+.PHONY: img
+
+css: $(CSS)
+.PHONY: css
+
+$(CSS): $(SCSS) $(BUILD_DIR)
+ mkdir -p `dirname $(CSS)`
+ sass --style expanded $(SCSS) $(CSS)
+
+$(BUILD_DIR):
+ mkdir -p $(BUILD_DIR)
+
+clean: clean-build clean-css
+.PHONY: clean
+
+clean-build:
+ rm -rf $(BUILD_DIR)
+.PHONY: clean-build
+
+clean-css:
+ rm -rf $(CSS)
+.PHONY: clean-css