From 03a47808403d19e508272d59615100f2b6d039ff Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sat, 6 Apr 2019 23:41:46 -0400 Subject: Update Makefile. --- Makefile | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 4565ad3..b821034 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,14 @@ BUILD_DIR=_build CSS_DIR=$(BUILD_DIR)/assets/css +JS_DIR=$(BUILD_DIR)/assets/js IMG_DIR=$(BUILD_DIR)/assets/img -SCSS=scss/fsfi.scss +SCSS=scss/_all.scss CSS=$(CSS_DIR)/fsfi.css -site: $(BUILD_DIR) css img html +JS_SRC=js/navbar.js + +site: $(BUILD_DIR) css img html js .PHONY: site @@ -20,14 +23,23 @@ img: $(BUILD_DIR) css: $(CSS) .PHONY: css -$(CSS): $(SCSS) $(BUILD_DIR) +$(CSS): $(SCSS) scss/style.scss $(BUILD_DIR) mkdir -p `dirname $(CSS)` sass --style expanded $(SCSS) $(CSS) + +js: $(JS_DIR) $(JS_SRC) + cat $(JS_SRC) > $(JS_DIR)/fsfi.js +.PHONY: js + +$(JS_DIR): + mkdir -p $(JS_DIR) + + $(BUILD_DIR): mkdir -p $(BUILD_DIR) -clean: clean-build clean-css +clean: clean-css clean-build .PHONY: clean clean-build: -- cgit v1.2.3