diff options
author | Jordan <me@jordan.im> | 2021-02-16 16:48:56 -0700 |
---|---|---|
committer | Jordan <me@jordan.im> | 2021-02-16 16:48:56 -0700 |
commit | baa10aeb413a5ac109e56db5fd7a8d62a4d5965f (patch) | |
tree | b063d3df79882cb454329e6469088b00d382113f /Makefile | |
download | crane-baa10aeb413a5ac109e56db5fd7a8d62a4d5965f.tar.gz crane-baa10aeb413a5ac109e56db5fd7a8d62a4d5965f.zip |
initial commit
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4eb8879 --- /dev/null +++ b/Makefile @@ -0,0 +1,26 @@ +.POSIX: +.SUFFIXES: + +GO = go +RM = rm +GOFLAGS = +PREFIX = /usr/local +BINDIR = $(PREFIX)/bin +SHAREDIR = $(PREFIX)/share/crane + +goflags = $(GOFLAGS) + +all: crane + +crane: + $(GO) build $(goflags) -ldflags "-X main.buildPrefix=$(PREFIX)" + +clean: + $(RM) -f crane + +install: all + mkdir -p $(DESTDIR)$(BINDIR) + mkdir -p $(DESTDIR)$(SHAREDIR) + cp -f crane $(DESTDIR)$(BINDIR) + cp -R templates $(DESTDIR)$(SHAREDIR) + |