Skip to content

Commit

Permalink
introduce basic makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
s1ddok committed Nov 5, 2019
1 parent 8b2ae8e commit a8c169b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
prefix ?= /usr/local
bindir = $(prefix)/bin

build:
swift build -c release --disable-sandbox

install: build
install ".build/release/mtlswift" "$(bindir)"

uninstall:
rm -rf "$(bindir)/mtlswift"

clean:
rm -rf .build

.PHONY: build install uninstall clean

0 comments on commit a8c169b

Please sign in to comment.