~yerinalexey/rex

rex/Makefile -rw-r--r-- 355 bytes
1ea11870Alexey Yerin Bump version to 2.0.1 4 months ago
                                                                                
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
PREFIX ?= /usr/local
BINDIR ?= $(PREFIX)/bin

GO ?= go
GOFLAGS ?=

GOSRC := $(shell find . -name '*.go')
GOSRC += go.mod go.sum

RM ?= rm -f

all: rex

rex: $(GOSRC)
	$(GO) build $(GOFLAGS) -o $@

install: all
	install -D -m755 rex $(DESTDIR)$(BINDIR)/rex

uninstall:
	$(RM) $(DESTDIR)$(BINDIR)/rex

clean:
	$(RM) rex

.PHONY: all clean install uninstall