Create Makefile
This commit is contained in:
parent
f7d7f76646
commit
25d8ab5c20
1 changed files with 17 additions and 0 deletions
17
Makefile
Normal file
17
Makefile
Normal 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
|
Loading…
Add table
Reference in a new issue