mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Avoid manual editing of the wrapper script when a non-standard path is used. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
18 lines
411 B
Makefile
18 lines
411 B
Makefile
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
|