From 8540175d6126de2b398d34ba09a4d3d941b1a68c Mon Sep 17 00:00:00 2001 From: ful1e5 <24286590+ful1e5@users.noreply.github.com> Date: Thu, 28 Jan 2021 19:34:33 +0530 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=20Suppress=20commands=20&=20record=20?= =?UTF-8?q?file?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- builder/Makefile | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/builder/Makefile b/builder/Makefile index efb48bf..12877d2 100644 --- a/builder/Makefile +++ b/builder/Makefile @@ -1,15 +1,24 @@ -all: setup build clean +all: clean setup build .PHONY: all -clean: - rm -rf applbuild.egg-info build dist - find -iname "*.pyc" -delete +.ONESHELL: +SHELL:=/bin/bash -setup: clean setup.py - test -d venv || virtualenv venv - . venv/bin/activate; python3 setup.py install +clean: + @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 + +setup: setup.py + @test -d venv || virtualenv venv + @. venv/bin/activate; python3 setup.py install --record files.txt build: setup build.py - . venv/bin/activate; python3 build.py \ No newline at end of file + @. venv/bin/activate; python3 build.py \ No newline at end of file