From 6ad62016ed3193def4464e5949dc8afc52a6d420 Mon Sep 17 00:00:00 2001 From: Fausto Núñez Alberro Date: Sat, 16 Jan 2021 14:13:30 +0100 Subject: Automate weekly build process with pybase16 and GH Actions --- Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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}/*/ -- cgit v1.2.3