apple_cursor/builder/Makefile

30 lines
607 B
Makefile
Raw Normal View History

2021-01-28 07:18:21 -05:00
2021-01-28 09:04:33 -05:00
all: clean setup build
2021-01-28 07:18:21 -05:00
.PHONY: all
2021-01-28 09:04:33 -05:00
.ONESHELL:
SHELL:=/bin/bash
2021-01-28 07:18:21 -05:00
clean:
2021-01-28 09:04:33 -05:00
@rm -rf applbuild.egg-info build dist
@find -iname "*.pyc" -delete
# Removing setup.py package files if installed
@if [ -f "files.txt" ]; then
@xargs rm -rf < files.txt
@rm -rf files.txt
@fi
2021-01-28 07:18:21 -05:00
2021-01-28 09:04:33 -05:00
setup: setup.py
@test -d venv || virtualenv venv
@. venv/bin/activate; python3 setup.py install --record files.txt
2021-01-28 07:18:21 -05:00
build: setup build.py
2021-01-29 09:17:41 -05:00
@. venv/bin/activate; python3 build.py
build_unix: setup build.py
@. venv/bin/activate; python3 build.py unix
build_windows: setup build.py
@. venv/bin/activate; python3 build.py windows