From efd27cc96c4895665e747f2c041017778779c87c Mon Sep 17 00:00:00 2001 From: Sven Sager Date: Sat, 16 Sep 2023 10:36:54 +0200 Subject: [PATCH] build: Fix Makefile targets to match GNU coding standards - Rename target clean-all to distclean - Add uninstall target - Install target has to run tests Signed-off-by: Sven Sager --- Makefile | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 855d18f..a9bc2df 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ PYTHON = $(or $(wildcard $(VENV_PATH)/bin/python), $(SYSTEM_PYTHON)) APP_VERSION = $(shell $(PYTHON) src/$(PACKAGE) --version) -all: build_ui build_rc build +all: build_ui build_rc test build .PHONY: all @@ -59,15 +59,18 @@ update_translation: .PHONY: build_ui build_rc update_translation -## Build, install +## Build steps build: build_ui build_rc $(PYTHON) -m setup sdist $(PYTHON) -m setup bdist_wheel -install: build +install: test build $(PYTHON) -m pip install dist/$(PACKAGE)-*.whl -.PHONY: build install +uninstall: + $(PYTHON) -m pip uninstall --yes $(PACKAGE) + +.PHONY: test build install uninstall ## PyInstaller installer_mac: build_ui build_rc @@ -119,7 +122,7 @@ installer_linux: build_ui build_rc clean: rm -rf build dist src/*.egg-info *.spec -clean-all: clean - rm -R $(VENV_PATH) +distclean: clean + rm -rf $(VENV_PATH) -.PHONY: clean clean-all +.PHONY: clean distclean