git ssb

0+

cel / electrumc



Tree: e3f2144dc203fa77433ff2c6df20e3c4fe57235d

Files: e3f2144dc203fa77433ff2c6df20e3c4fe57235d / Makefile

723 bytesRaw
1# See LICENSE file for copyright and license details.
2
3BIN = electrumc
4MAN1 = $(BIN).1
5
6PREFIX = /usr/local
7BINDIR = $(PREFIX)/bin
8MANDIR = $(PREFIX)/share/man
9
10CFLAGS = -Wall -Werror -Wextra
11LDLIBS = -lssl
12
13all: $(BIN)
14
15test: all
16 ./test.sh
17
18$(BIN): $(BIN).c
19
20install: all
21 @mkdir -vp $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
22 @cp -vf $(BIN) $(DESTDIR)$(BINDIR)
23 @cp -vf $(MAN1) $(DESTDIR)$(MANDIR)/man1
24
25link: all
26 @mkdir -vp $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
27 @ln -rsvf $(BIN) $(DESTDIR)$(BINDIR)
28 @ln -rsvf $(MAN1) $(DESTDIR)$(MANDIR)/man1
29
30uninstall:
31 @rm -vf \
32 $(BIN:%=$(DESTDIR)$(BINDIR)/%) \
33 $(MAN1:%=$(DESTDIR)$(MANDIR)/man1/%)
34
35clean:
36 @rm -vf $(BIN)
37
38.PHONY:
39 all install link uninstall clean
40

Built with git-ssb-web