Files: b87295647c8a0f85d7f4b8f32a12dda732d12b7d / Makefile
701 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 | $(BIN): $(BIN).c |
16 | |
17 | install: all |
18 | @mkdir -vp $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1 |
19 | @cp -vf $(BIN) $(DESTDIR)$(BINDIR) |
20 | @cp -vf $(MAN1) $(DESTDIR)$(MANDIR)/man1 |
21 | |
22 | link: all |
23 | @mkdir -vp $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1 |
24 | @ln -rsvf $(BIN) $(DESTDIR)$(BINDIR) |
25 | @ln -rsvf $(MAN1) $(DESTDIR)$(MANDIR)/man1 |
26 | |
27 | uninstall: |
28 | @rm -vf \ |
29 | $(BIN:%=$(DESTDIR)$(BINDIR)/%) \ |
30 | $(MAN1:%=$(DESTDIR)$(MANDIR)/man1/%) |
31 | |
32 | clean: |
33 | @rm -vf $(BIN) |
34 | |
35 | .PHONY: |
36 | all install link uninstall clean |
37 |
Built with git-ssb-web