aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2020-03-10 22:05:48 -0400
committerB Stack <bgstack15@gmail.com>2020-03-10 22:05:48 -0400
commite59268441a9f46f806e74c9bc8ddc9a0b224c60d (patch)
tree15cfc2f066261d4fa9e222995646ec4af2271031 /src/Makefile
parentWIP: add lm-helper (diff)
downloadlogout-manager-e59268441a9f46f806e74c9bc8ddc9a0b224c60d.tar.gz
logout-manager-e59268441a9f46f806e74c9bc8ddc9a0b224c60d.tar.bz2
logout-manager-e59268441a9f46f806e74c9bc8ddc9a0b224c60d.zip
add DRYRUN and bash_completion to lm-helper
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile
index 6af4efb..9fdad77 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -29,6 +29,7 @@ LIBEXECDIR = $(DESTDIR)$(prefix)/libexec
DOCDIR = $(SHAREDIR)/doc/$(APPNAME)
APPDIR = $(SHAREDIR)/$(APPNAME)
APPSDIR = $(SHAREDIR)/applications
+BASHCDIR = $(SYSCONFDIR)/bash_completion.d
awkbin :=$(shell which awk)
cpbin :=$(shell which cp)
@@ -36,12 +37,13 @@ echobin :=$(shell which echo)
findbin :=$(shell which find)
grepbin :=$(shell which grep)
installbin :=$(shell which install)
+lnbin :=$(shell which ln)
rmbin :=$(shell which rm)
sedbin :=$(shell which sed)
sortbin :=$(shell which sort)
truebin :=$(shell which true)
+uniqbin :=$(shell which uniq)
xargsbin :=$(shell which xargs)
-lnbin :=$(shell which ln)
all:
${echobin} "No compilation in this package."
@@ -53,7 +55,7 @@ list:
deplist:
@if test -z "$(DISTRO)" ; then ${echobin} "Please run \`make deplist\` with DISTRO= one of: `make deplist_opts 2>&1 1>/dev/null | ${xargsbin}`. Aborted." ; exit 1 ; fi
- @${grepbin} -h --exclude='Makefile' -A5 -riIE dependencies $(SRCDIR) | awk -v 'distro=$(DISTRO)' 'tolower($$0) ~ distro {$$1="";$$2="";print}' | sort | uniq | xargs
+ @${grepbin} -h --exclude='Makefile' --exclude-dir='doc' -A5 -riIE dependencies $(SRCDIR) | ${awkbin} -v 'distro=$(DISTRO)' 'tolower($$0) ~ distro {$$1="";$$2="";print}' | ${sortbin} | ${uniqbin} | ${xargsbin}
deplist_opts:
@${echobin} "el7" 1>&2
@@ -61,8 +63,9 @@ deplist_opts:
install:
@${echobin} Installing files to ${DESTDIR}
- ${installbin} -d ${SYSCONFDIR} ${DEFAULTDIR} ${BINDIR} ${APPSDIR} ${APPDIR} ${DOCDIR}
+ ${installbin} -d ${SYSCONFDIR} ${DEFAULTDIR} ${BINDIR} ${APPSDIR} ${APPDIR} ${DOCDIR} ${BASHCDIR}
${cpbin} -pr ${SRCDIR}/etc/*.* ${SYSCONFDIR}
+ ${cpbin} -pr ${SRCDIR}/etc/bash_completion.d/* ${BASHCDIR}
${cpbin} -pr ${SRCDIR}/etc/sysconfig/* ${DEFAULTDIR}
${cpbin} -pr ${SRCDIR}/usr/bin/* ${BINDIR}
${cpbin} -pr ${SRCDIR}/usr/share/applications/* ${APPSDIR}
bgstack15