From 7494ab912056b796d67ca43af2bb1a8bde62fdf5 Mon Sep 17 00:00:00 2001 From: Jan Knížek Date: Tue, 21 Jul 2020 18:05:46 +0200 Subject: Added basic building structure --- Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..64b4cf0 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# this is expected to be executed from the root of the template repo +BUILDER=pybase16 +THEME_DIR=themes +TEMPLATE_DIR=templates +TEMPLATE_NAME=$(shell basename $(shell pwd)) +OUTPUT_DIR=output +SOURCES_DIR=sources +SCHEMES_DIR=schemes + +all: update build + +update: + $(BUILDER) update + +build: + $(BUILDER) build -t $(shell pwd) -o $(OUTPUT_DIR) + mv $(OUTPUT_DIR)/$(TEMPLATE_NAME)/themes/* $(THEME_DIR)/ + rm -rf $(SOURCES_DIR) $(OUTPUT_DIR) $(TEMPLATE_DIR)/*/ $(SCHEMES_DIR) + +clean: + rm -rf $(THEME_DIR)/* sources.yaml -- cgit