fsfi

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

commit cb7884f2ea8ea287ba2075fc3c007ad247e02a98
parent dedfbdf7d246bd2f5501eef4a19d6201ec81800e
Author: rsiddharth <s@ricketyspace.net>
Date:   Fri,  5 Apr 2019 07:22:25 -0400

Add Makefile.

Diffstat:
Makefile | 39+++++++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+), 0 deletions(-)

diff --git a/Makefile 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