logo/Makefile

35 lines
638 B
Makefile
Raw Normal View History

2022-08-12 17:03:00 -05:00
.PHONY: all
all:
@echo "==> Generating SVGs <=="
@mkdir -p docs/svg
2022-08-12 17:03:00 -05:00
@$(MAKE) svgs
@echo "==> Generating PNGs <=="
@mkdir -p docs/png
@$(MAKE) docs/png/index.html
2022-08-12 17:03:00 -05:00
@$(MAKE) pngs
2023-04-21 08:39:19 -05:00
svgs: ## generate all svgs
nimble run
pngs: ## generate all of the logo pngs
nimble pngs
ascii: ## generate all ascii variants
./scripts/ascii.nims
2022-08-12 17:03:00 -05:00
docs/png/index.html: docs/index.html
@cat docs/index.html |\
sed 's/svg/png/g' |\
sed 's/\.\/png/\./g' |\
sed s'/My Logos/My Logos but PNG/g' \
> docs/png/index.html
2023-02-06 11:42:12 -06:00
clean: ## remove old files
2022-08-12 17:03:00 -05:00
rm -f *.svg *.png
2022-08-12 18:06:53 -05:00
rm -f docs/*.svg
2022-08-12 17:03:00 -05:00
rm -f docs/svg/*
rm -f docs/png/*
2023-02-06 11:42:12 -06:00
-include .task.cfg.mk