aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: ea9562c203a88bd173f5a9d13b6c59a8616aaa93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
ifeq ($(PREFIX),)
	PREFIX := /usr/local
endif

ifeq ($(BINDIR),)
	BINDIR := /bin
endif

CMD=ws_internal

make: ws_internal

ws_internal: main.go wrapper.go
	go build -o $@ $^

install:
	mkdir -p $(DESTDIR)$(PREFIX)$(BINDIR)/
	install -m 755 $(CMD) $(DESTDIR)$(PREFIX)$(BINDIR)/

uninstall:
	rm -rf $(DESTDIR)$(PREFIX)$(BINDIR)/$(CMD)

.PHONY: install uninstall make