Makefile 411 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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.in >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