summaryrefslogtreecommitdiff
path: root/src/Makefile
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2024-04-30 17:07:32 -0400
committerB. Stack <bgstack15@gmail.com>2024-04-30 17:07:32 -0400
commitda13d05a83432f2c0c453d19e6b602b9e6bad610 (patch)
tree83e435c8b92dc03e5573d7167d3ecacc702bbc0c /src/Makefile
parentdeb should be ready now (diff)
downloadstackrpms-acer-chromebook-da13d05a83432f2c0c453d19e6b602b9e6bad610.tar.gz
stackrpms-acer-chromebook-da13d05a83432f2c0c453d19e6b602b9e6bad610.tar.bz2
stackrpms-acer-chromebook-da13d05a83432f2c0c453d19e6b602b9e6bad610.zip
add disable-powerbutton daemon and tools
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index ef6a8fc..065349e 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -6,6 +6,7 @@
# Purpose: To use traditional Unix make utility
# History:
# 2022-11-04 forked from bgscripts Makefile
+# 2024-04-30 improved sysconfig discovery
# Usage:
# Reference:
# bgscripts Makefile
@@ -84,12 +85,13 @@ deplist_opts:
@${grepbin} -h -o -riIE '\<(dep|rec|sug)-[^\ :]+:' ${SRCDIR} | ${sedbin} -r -e 's/(dep|rec|sug)-//;' -e 's/:$$//;' | ${sortbin} | ${uniqbin} 1>&2
install_files:
+ @# install_files updated the sysconfig test -f
@ls usr/share/man/man*/*gz 1>/dev/null 2>&1 && echo "Including man pages." || :
@${echobin} Installing files to ${DESTDIR}
for td in $$( ${findbin} ${SRCDIR} -type d ! -name '.*.swp' ! -name 'Makefile' -printf '%P\n' | ${sedbin} -r -e "s:etc/sysconfig:${DEFAULTDIR}:" -e "s:${DESTDIR}/?::" ) ; do ${installbin} -m0755 -d ${DESTDIR}/$${td} ; done
for tf in $$( ${findbin} ${SRCDIR} ! -type d ! -name '.*.swp' ! -name 'Makefile' ! \( -path '*/man/*' -name '*.txt' \) ! -path '*/sysconfig/*' -printf '%P\n' ) ; do MODE=0644 ; echo "$${tf}" | grep -qE "(bin|libexec|deprecated)/" && MODE=0755 ; ${installbin} -m$${MODE} ${SRCDIR}/$${tf} ${DESTDIR}/$${tf} ; done
@# sysconfig/default dir
- test -f "$( echo ${SRCDIR}/etc/sysconfig/* 2>/dev/null | head -n1 )" && { ${installbin} -m0644 -t ${DEFAULTDIR} ${SRCDIR}/etc/sysconfig/* ; } || :
+ ${findbin} ${SRCDIR}/etc/sysconfig/* -maxdepth 0 -quit 1>/dev/null 2>&1 && { ${installbin} -m0644 -t ${DEFAULTDIR} ${SRCDIR}/etc/sysconfig/* ; } || :
MAN_TXT:=$(wildcard usr/share/man/man*/*.txt)
MAN_GZ:= $(subst .txt,.gz,$(MAN_TXT))
bgstack15