From 25d8ab5c20d7443ceaff3676de3714a6531e3da9 Mon Sep 17 00:00:00 2001 From: Sven Weidauer Date: Wed, 30 Dec 2020 23:09:21 +0100 Subject: [PATCH] Create Makefile --- Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..98c4dcc --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +prefix ?= /usr/local +bindir = $(prefix)/bin + +build: + swift build -c release --disable-sandbox + +install: build + install -d "$(bindir)" + install ".build/release/MakeColors" "$(bindir)/make-colors" + +uninstall: + rm -rf "$(bindir)/make-colors" + +clean: + rm -rf .build + +.PHONY: build install uninstall clean