summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2019-05-16 18:42:56 -0400
committerrsiddharth <s@ricketyspace.net>2019-05-16 18:42:56 -0400
commit48a499c2c1b999008c5a0d1f8931141b07225c4b (patch)
treee77362b008b203d46b1f1a1c2eaa5ff43e3d2cce /Makefile
parent7e509b64e1a22925be657b3137f8383d5cc2e87c (diff)
html -> static, img -> static/assets/img
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 7 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index eb8c5ad..255d0b8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,32 +1,30 @@
BUILD_DIR=_build
CSS_DIR=$(BUILD_DIR)/assets/css
JS_DIR=$(BUILD_DIR)/assets/js
-IMG_DIR=$(BUILD_DIR)/assets/img
SCSS=scss/_all.scss
CSS=$(CSS_DIR)/fsfi.css
JS_SRC=js/navbar.js
-site: $(BUILD_DIR) css img html js
+site: $(BUILD_DIR) css static js
.PHONY: site
-html: $(BUILD_DIR)
- rsync -a html/ $(BUILD_DIR)/
-.PHONY: html
+static: $(BUILD_DIR)
+ rsync -a static/ $(BUILD_DIR)/
+.PHONY: static
-img: $(BUILD_DIR)
- rsync -a img/ $(IMG_DIR)/
-.PHONY: img
news:
@python3 ./bin/news
.PHONY: news
+
css: $(CSS)
.PHONY: css
+
$(CSS): $(SCSS) scss/style.scss $(BUILD_DIR)
mkdir -p `dirname $(CSS)`
sass --style expanded $(SCSS) $(CSS)
@@ -36,6 +34,7 @@ js: $(JS_DIR) $(JS_SRC)
cat $(JS_SRC) > $(JS_DIR)/fsfi.js
.PHONY: js
+
$(JS_DIR):
mkdir -p $(JS_DIR)