aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 0636fe050d9cad7b48870b60832f6f7d88fe629c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Ref: https://github.com/theova/base16-qutebrowser
.PHONY: all clean update build

BUILD=pybase16
REPO=$(shell pwd)
TEMPLATE=$(shell basename ${REPO})
BUILD_DIR=build_schemes
TEMPLATE_DIR=templates
OUTPUT=output

all: update build

update:
	$(BUILD) update

build:
	$(BUILD) build -t ${REPO} -o ${OUTPUT}
	rm -rf ${BUILD_DIR}
	mkdir ${BUILD_DIR}
	cat templates/config.yaml | grep output | cut -d' ' -f6 | xargs -L1 -I {} mv ${OUTPUT}/${TEMPLATE}/{}/ ${BUILD_DIR}/

clean:
	rm -rf ${OUTPUT} ${TEMPLATE_DIR}/*/