~stacyharper/bonsai

bonsai/Makefile -rw-r--r-- 663 bytes
8dc8767fStacy Harper bump hare fromutf8 usage 27 days 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
27
28
29
30
31
32
33
34
35
36
37
38
.POSIX:
.SUFFIXES:
HARE=hare
HAREFLAGS=
SCDOC=scdoc

DESTDIR=
PREFIX=/usr/local
SRCDIR=$(PREFIX)/src
SHAREDIR=$(PREFIX)/share
MANDIR=$(SHAREDIR)/man
HARESRCDIR=$(SRCDIR)/hare
THIRDPARTYDIR=$(HARESRCDIR)/third-party

all: bonsaid bonsaictl

bonsaid:
	hare build -o $@ cmd/$@/

bonsaictl:
	hare build -o $@ cmd/$@/

check:
	hare test

clean:
	rm -f bonsaid bonsaictl

install:
	mkdir -p $(DESTDIR)$(PREFIX)/bin
	install -m755 bonsaid $(DESTDIR)$(PREFIX)/bin
	install -m755 bonsaictl $(DESTDIR)$(PREFIX)/bin

uninstall:
	rm -f $(DESTDIR)$(PREFIX)/bin/bonsaid
	rm -f $(DESTDIR)$(PREFIX)/bin/bonsaictl

.PHONY: all bonsaid bonsaictl check clean install uninstall docs