blob: 4eb8879f48fde3963b6d0c6c91d14e4ca24f3ddd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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)
|