tMore Makefile - tordam - A library for peer discovery inside the Tor network
HTML git clone https://git.parazyd.org/tordam
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 5d78c9b02c3e25ca79d76d09ee6f08514946f402
DIR parent 7fc35c1c28c73e9416e2460bdebd79dc3a315ad3
HTML Author: parazyd <parazyd@dyne.org>
Date: Sat, 9 Dec 2017 18:31:55 +0100
More Makefile
Diffstat:
M Makefile | 2 ++
A contrib/Makefile | 21 +++++++++++++++++++++
M python/Makefile | 6 +++---
3 files changed, 26 insertions(+), 3 deletions(-)
---
DIR diff --git a/Makefile b/Makefile
t@@ -7,8 +7,10 @@ all:
install:
@make -C python install
+ @make -C contrib install
uninstall:
@make -C python uninstall
+ @make -C contrib uninstall
.PHONY: all install uninstall
DIR diff --git a/contrib/Makefile b/contrib/Makefile
t@@ -0,0 +1,21 @@
+# See LICENSE file for copyright and license details.
+
+PREFIX ?= /usr/local
+
+SRC =\
+ redis.conf \
+ torrc
+
+all:
+ @echo 'Run "make install" to install to $(DESTDIR)$(PREFIX)/share/tor-dam'
+
+install:
+ @echo 'Installing to $(DESTDIR)$(PREFIX)/share/tor-dam'
+ mkdir -p $(DESTDIR)$(PREFIX)/share/tor-dam
+ cp -f $(SRC) $(DESTDIR)$(PREFIX)/share/tor-dam
+
+uninstall:
+ @echo 'Uninstalling from $(DESTDIR)$(PREFIX)/share/tor-dam'
+ rm -rf $(DESTDIR)$(PREFIX)/share/tor-dam
+
+.PHONY: all install uninstall
DIR diff --git a/python/Makefile b/python/Makefile
t@@ -7,16 +7,16 @@ BIN =\
damauth.py
all:
- @echo 'Run "make install" to install the scripts to $(DESTDIR)$(PREFIX)/bin'
+ @echo 'Run "make install" to install to $(DESTDIR)$(PREFIX)/bin'
install:
- @echo 'Installing scripts to $(DESTDIR)$(PREFIX)/bin'
+ @echo 'Installing to $(DESTDIR)$(PREFIX)/bin'
mkdir -p $(DESTDIR)$(PREFIX)/bin
cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin
for f in $(BIN); do chmod 755 "$(DESTDIR)$(PREFIX)/bin/$$f"; done
uninstall:
- @echo 'Uninstalling scripts from $(DESTDIR)$(PREFIX)/bin'
+ @echo 'Uninstalling from $(DESTDIR)$(PREFIX)/bin'
for f in $(BIN); do rm -f "$(DESTDIR)$(PREFIX)/bin/$$f"; done
.PHONY: all install uninstall