fsfi

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 03a47808403d19e508272d59615100f2b6d039ff
parent 5218287eb4ff6f8438d07cca308c20b4a7d1e9c5
Author: rsiddharth <s@ricketyspace.net>
Date:   Sat,  6 Apr 2019 23:41:46 -0400

Update Makefile.

Diffstat:
Makefile | 20++++++++++++++++----
1 file changed, 16 insertions(+), 4 deletions(-)

diff --git 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: