3 SHRDIR ?
= $(PREFIX
)/share
4 BINDIR ?
= $(PREFIX
)/bin
5 LIBDIR ?
= $(PREFIX
)/lib
7 AURUTILS_LIB_DIR ?
= $(LIBDIR
)/$(PROGNM
)
8 AURUTILS_VERSION ?
= $(shell git describe
--tags || true
)
9 ifeq ($(AURUTILS_VERSION
),)
13 .PHONY
: shellcheck
install build completion aur
18 sed
-e
's|AURUTILS_LIB_DIR|$(AURUTILS_LIB_DIR)|' \
19 -e
's|AURUTILS_VERSION|$(AURUTILS_VERSION)|' $< >$@
22 @
$(MAKE
) -C completions bash zsh
25 @shellcheck
-x
-f gcc
-e
1071 aur lib
/*
28 @
install -Dm755 aur
-t
'$(DESTDIR)$(BINDIR)'
31 @
install -Dm755 lib
/aur-
* -t
'$(DESTDIR)$(LIBDIR)/$(PROGNM)'
32 @
install -Dm644 man1
/* -t
'$(DESTDIR)$(SHRDIR)/man/man1'
33 @
install -Dm644 man7
/* -t
'$(DESTDIR)$(SHRDIR)/man/man7'
34 @
install -Dm644 LICENSE
-t
'$(DESTDIR)$(SHRDIR)/licenses/$(PROGNM)'
35 @
install -Dm644 README.md
-t
'$(DESTDIR)$(SHRDIR)/doc/$(PROGNM)'
36 @
install -Dm644 examples
/* -t
'$(DESTDIR)$(SHRDIR)/doc/$(PROGNM)/examples'
37 @
install -dm755 aurutils
'$(DESTDIR)$(ETCDIR)/$(PROGNM)'
38 @
$(MAKE
) -C completions DESTDIR
='$(DESTDIR)' install-bash install-zsh