aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLibravatar nicodebo <n.debonnaire@gmail.com>2018-11-09 18:55:57 +0100
committerLibravatar nicodebo <n.debonnaire@gmail.com>2018-11-09 18:55:57 +0100
commit8e6552b9ac732ac851cf1f929b1f98170456ea2b (patch)
treecfed3e7a65461965de6e0910be2e96f083ab6746 /Makefile
parent32705056940b7f1e38981e30cce4d0f3b2eee5de (diff)
Use makefile to update schemes
method based on the base16-qutebrowser: https://github.com/theova/base16-qutebrowser
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 22 insertions, 0 deletions
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}/*/