mirror of
https://github.com/ful1e5/apple_cursor.git
synced 2025-05-21 02:35:25 -04:00
🚀 Makefiles init
This commit is contained in:
parent
1b4fdce0b5
commit
72999e89ba
3 changed files with 65 additions and 0 deletions
32
Makefile
32
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
|
||||
|
18
bitmap/Makefile
Normal file
18
bitmap/Makefile
Normal 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
15
builder/Makefile
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue