diff --git a/Makefile b/Makefile index e69de29..8f74be5 100644 --- a/Makefile +++ b/Makefile @@ -0,0 +1,32 @@ +all: clean render build install + +.PHONY: all + +clean: + rm -rf pngs themes + +render: + cd bitmap && $(MAKE) + +build: + cd builder && $(MAKE) + +SHELL:=/bin/bash +.ONESHELL: +install: themes/macOSBigSur + if [[ $EUID -ne 0 ]]; then + rm -rf ~/.icons/macOSBigSur + cp -r themes/macOSBigSur ~/.icons/ + else + sudo rm -rf /usr/share/icons/macOSBigSur + sudo cp -r themes/macOSBigSur /usr/share/icons/ + fi + + +uninstall: + if [[ $EUID -ne 0 ]]; then + rm -rf ~/.icons/macOSBigSur + else + sudo rm -rf /usr/share/icons/macOSBigSur + fi + diff --git a/bitmap/Makefile b/bitmap/Makefile new file mode 100644 index 0000000..e7aaf94 --- /dev/null +++ b/bitmap/Makefile @@ -0,0 +1,18 @@ +all: install render + +.PHONY: all + +install: node_modules package.json + yarn install + +render: + yarn render + +watch: + yarn watch + +node_modules: + mkdir -p $@ + +clean: + rm -rf node_modules yarn.lock \ No newline at end of file diff --git a/builder/Makefile b/builder/Makefile new file mode 100644 index 0000000..efb48bf --- /dev/null +++ b/builder/Makefile @@ -0,0 +1,15 @@ + +all: setup build clean + +.PHONY: all + +clean: + rm -rf applbuild.egg-info build dist + find -iname "*.pyc" -delete + +setup: clean setup.py + test -d venv || virtualenv venv + . venv/bin/activate; python3 setup.py install + +build: setup build.py + . venv/bin/activate; python3 build.py \ No newline at end of file