git ssb

0+

cel / electrumc



Tree: b87295647c8a0f85d7f4b8f32a12dda732d12b7d

Files: b87295647c8a0f85d7f4b8f32a12dda732d12b7d / Makefile

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

Built with git-ssb-web