Suppress commands & record file

This commit is contained in:
ful1e5 2021-01-28 19:34:33 +05:30
parent cb9eacab70
commit 8540175d61

View file

@ -1,15 +1,24 @@
all: setup build clean all: clean setup build
.PHONY: all .PHONY: all
clean: .ONESHELL:
rm -rf applbuild.egg-info build dist SHELL:=/bin/bash
find -iname "*.pyc" -delete
setup: clean setup.py clean:
test -d venv || virtualenv venv @rm -rf applbuild.egg-info build dist
. venv/bin/activate; python3 setup.py install @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
setup: setup.py
@test -d venv || virtualenv venv
@. venv/bin/activate; python3 setup.py install --record files.txt
build: setup build.py build: setup build.py
. venv/bin/activate; python3 build.py @. venv/bin/activate; python3 build.py