aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFausto Núñez Alberro <fausto.nunez@mailbox.org>2021-01-16 14:13:30 +0100
committerFausto Núñez Alberro <fausto.nunez@mailbox.org>2021-01-16 14:13:30 +0100
commit6ad62016ed3193def4464e5949dc8afc52a6d420 (patch)
tree96a3ea1489fe503f63a24716b88d5a99511b0e5d /Makefile
parent6191622d5806d4448fa2285047936bdcee57a098 (diff)
Automate weekly build process with pybase16 and GH Actions
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..555bdfc
--- /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=colors
+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}/*/