langchart/Makefile

19 lines
411 B
Makefile

THEME=neutral
BACKGROUND_COLOR=\\\#333333
MMDC_BASE_CMD=mmdc --theme $(THEME) --backgroundColor $(BACKGROUND_COLOR) --puppeteerConfigFile ./puppeteer-config.json
.PHONY: All
All: build/de.png build/de.svg build/en.png build/en.svg
.PHONY: clean
clean:
rm -rf build
build/%.svg: %.mmd
@mkdir -p $(@D)
$(MMDC_BASE_CMD) -i $< -o $@
build/%.png: %.mmd
@mkdir -p $(@D)
$(MMDC_BASE_CMD) -i $< -o $@ -w 2000