tordam

A library for peer discovery inside the Tor network
git clone https://git.parazyd.org/tordam
Log | Files | Refs | README | LICENSE

commit 5d78c9b02c3e25ca79d76d09ee6f08514946f402
parent 7fc35c1c28c73e9416e2460bdebd79dc3a315ad3
Author: parazyd <parazyd@dyne.org>
Date:   Sat,  9 Dec 2017 18:31:55 +0100

More Makefile

Diffstat:
MMakefile | 2++
Acontrib/Makefile | 21+++++++++++++++++++++
Mpython/Makefile | 6+++---
3 files changed, 26 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile @@ -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 diff --git a/contrib/Makefile b/contrib/Makefile @@ -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 diff --git a/python/Makefile b/python/Makefile @@ -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