🚀 Makefiles init

This commit is contained in:
ful1e5 2021-01-28 17:48:21 +05:30
parent 1b4fdce0b5
commit 72999e89ba
3 changed files with 65 additions and 0 deletions

View file

@ -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

18
bitmap/Makefile Normal file
View file

@ -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

15
builder/Makefile Normal file
View file

@ -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