From 124ad009975eb9dfed8141f24fccf12fdc720346 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Tue, 2 Jun 2015 10:48:31 +0200 Subject: Add a Makefile for the git-auth wrapper Avoid manual editing of the wrapper script when a non-standard path is used. Signed-off-by: Lukas Fleischer --- git-interface/Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 git-interface/Makefile (limited to 'git-interface/Makefile') diff --git a/git-interface/Makefile b/git-interface/Makefile new file mode 100644 index 0000000..8865790 --- /dev/null +++ b/git-interface/Makefile @@ -0,0 +1,18 @@ +GIT_INTERFACE_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))) + +include config.mk + +git-auth.sh: + sed 's#%GIT_INTERFACE_DIR%#$(GIT_INTERFACE_DIR)#' git-auth.sh + chmod +x git-auth.sh + +install: git-auth.sh + install -Dm0755 git-auth.sh "$(DESTDIR)$(PREFIX)/bin/aur-git-auth" + +uninstall: + rm -f "$(DESTDIR)$(PREFIX)/bin/aur-git-auth" + +clean: + rm -f git-auth.sh + +.PHONY: install uninstall clean -- cgit v1.2.3-54-g00ecf