From 8e6552b9ac732ac851cf1f929b1f98170456ea2b Mon Sep 17 00:00:00 2001 From: nicodebo Date: Fri, 9 Nov 2018 18:55:57 +0100 Subject: Use makefile to update schemes method based on the base16-qutebrowser: https://github.com/theova/base16-qutebrowser --- .gitignore | 8 ++++++++ Makefile | 22 ++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..01e3d91 --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +sources +schemes +sources.yaml + +templates/* + +!/templates/config.yaml +!/templates/default.mustache diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..42e12b0 --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +# Ref: https://github.com/theova/base16-qutebrowser +.PHONY: all clean update build + +BUILD=pybase16 +REPO=$(shell pwd) +TEMPLATE=$(shell basename ${REPO}) +THEME_DIR=build_schemes +TEMPLATE_DIR=templates +OUTPUT=output + +all: update build + +update: + $(BUILD) update + +build: + $(BUILD) build -t ${REPO} -o ${OUTPUT} + rm -rf ${THEME_DIR} + mv ${OUTPUT}/${TEMPLATE}/${THEME_DIR}/ ${THEME_DIR}/ + +clean: + rm -rf ${OUTPUT} ${TEMPLATE_DIR}/*/ -- cgit