Create Makefile

This commit is contained in:
Sven Weidauer 2020-12-30 23:09:21 +01:00
parent f7d7f76646
commit 25d8ab5c20

17
Makefile Normal file
View file

@ -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