aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLibravatar Rohit Goswami <rgoswami@ieee.org>2020-12-27 18:11:21 +0000
committerLibravatar Rohit Goswami <rgoswami@ieee.org>2020-12-27 18:11:21 +0000
commit390f0b2389a3b636165044de0481dff8f0657570 (patch)
tree0bdb0b237f0cadebcf9fe7de3113e468febb7163 /Makefile
parent89f01a52fbe558dc400f1abd8b5e8a5620789619 (diff)
parent34e5a16dac5ddbd7764fcbefaa3340002abec0e5 (diff)
Merge branch 'master' of github.com:HaoZeke/base16-zathura
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 42e12b0..0636fe0 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@
BUILD=pybase16
REPO=$(shell pwd)
TEMPLATE=$(shell basename ${REPO})
-THEME_DIR=build_schemes
+BUILD_DIR=build_schemes
TEMPLATE_DIR=templates
OUTPUT=output
@@ -15,8 +15,9 @@ update:
build:
$(BUILD) build -t ${REPO} -o ${OUTPUT}
- rm -rf ${THEME_DIR}
- mv ${OUTPUT}/${TEMPLATE}/${THEME_DIR}/ ${THEME_DIR}/
+ 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}/*/