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