From 0bdf380a2c524648e5f29e45637bb5f249018b09 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Fri, 25 Nov 2022 11:19:47 -0500 Subject: [PATCH] Add "install" and "uninstall" targets in Makefile --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Makefile b/Makefile index e1be07d1..fe32828f 100644 --- a/Makefile +++ b/Makefile @@ -244,6 +244,18 @@ endif cd dist && zip -q -9 -r "$(DIST_SDK)" "$(DIST_SDK_DIR)" +install: dist +ifdef ARCH_MAC + sudo installer -pkg dist/"$(DIST_NAME)".pkg -target / +endif + + +uninstall: +ifdef ARCH_MAC + sudo rm -rf /Applications/"$(DIST_BUNDLE)" +endif + + # Target not supported for public use notarize: ifdef ARCH_MAC