configure make

This commit is contained in:
Mihail Preis
2019-07-12 19:44:51 +05:00
parent 8992c709ea
commit d02a9b8ee5
2 changed files with 48 additions and 0 deletions

17
Makefile Normal file
View File

@ -0,0 +1,17 @@
prefix ?= /usr/local
bindir = $(prefix)/bin
libdir = $(prefix)/lib
build:
swift build -c release --disable-sandbox
install: build
install ".build/release/stringen" "$(bindir)"
uninstall:
rm -rf "$(bindir)/stringen"
clean:
rm -rf .build
.PHONY: build install uninstall clean