aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 64b4cf0387eddca9d1fe66920717ff1709790337 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# this is expected to be executed from the root of the template repo
BUILDER=pybase16
THEME_DIR=themes
TEMPLATE_DIR=templates
TEMPLATE_NAME=$(shell basename $(shell pwd))
OUTPUT_DIR=output
SOURCES_DIR=sources
SCHEMES_DIR=schemes

all: update build

update:
	$(BUILDER) update

build:
	$(BUILDER) build -t $(shell pwd) -o $(OUTPUT_DIR)
	mv $(OUTPUT_DIR)/$(TEMPLATE_NAME)/themes/* $(THEME_DIR)/
	rm -rf $(SOURCES_DIR) $(OUTPUT_DIR) $(TEMPLATE_DIR)/*/ $(SCHEMES_DIR)

clean:
	rm -rf $(THEME_DIR)/* sources.yaml