git ssb

8+

cel / sbotc



Tree: cec6448afd2f0c42739c510e602283f56518510c

Files: cec6448afd2f0c42739c510e602283f56518510c / Makefile

932 bytesRaw
1BIN = sbotc
2
3PREFIX = /usr/local
4BINDIR = $(PREFIX)/bin
5MANDIR = $(PREFIX)/share/man
6
7CFLAGS = -Wall -Werror -Wextra
8
9ifdef STATIC
10 LDLIBS = -l:libsodium.a
11else
12 LDLIBS = -lsodium
13endif
14
15all: $(BIN)
16
17$(BIN): $(BIN).c jsmn.c
18
19install: all
20 @mkdir -vp $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
21 @cp -vf $(BIN) $(DESTDIR)$(BINDIR)
22 @cp -vf $(BIN).1 $(DESTDIR)$(MANDIR)/man1
23
24link: all
25 @mkdir -vp $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
26 @ln -svf $(shell realpath $(BIN)) $(DESTDIR)$(BINDIR)
27 @ln -svf $(shell realpath $(BIN).1) $(DESTDIR)$(MANDIR)/man1
28
29uninstall:
30 @rm -vf \
31 $(DESTDIR)$(BINDIR)/$(BIN) \
32 $(DESTDIR)$(MANDIR)/man1/$(BIN).1
33
34test-shs1: test-shs1-client test-shs1-server
35
36test-shs1-client:
37 shs1testclient ./test-shs-client-inner.sh $(SHS1_TEST_SEED)
38
39test-shs1-server:
40 shs1testserver ./test-shs-server-inner.sh $(SHS1_TEST_SEED)
41
42clean:
43 @rm -vf $(BIN)
44
45.PHONY:
46 all install link uninstall test-shs1 clean
47

Built with git-ssb-web