commit: f26e1283cd330feb184dcb00d5c94c688ea021a0
parent 951c8a82e9ef30a564498e83ed65a96afdd9b86b
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Wed, 20 Aug 2025 16:55:50 +0200
Remove sh/* from EXE targets
This way it doesn't get in the clean target.
Diffstat:
2 files changed, 6 insertions(+), 14 deletions(-)
diff --git a/Makefile b/Makefile
@@ -30,7 +30,7 @@ clean:
install: all
mkdir -p ${DESTDIR}${BINDIR}/
- cp -p ${EXE} ${DESTDIR}${BINDIR}/
+ cp -p ${EXE} sh/* ${DESTDIR}${BINDIR}/
chown 0:0 ${DESTDIR}${BINDIR}/memsys
chmod 4755 ${DESTDIR}${BINDIR}/memsys
mkdir -p ${DESTDIR}${MANDIR}/man1
diff --git a/configure b/configure
@@ -48,7 +48,7 @@ or_die() {
gen_targets() {
printf 'EXE = '
- printf '%s\n ' cmd/*.c sh/* | sed -e 's;.c$;;' | tr -d '\n'
+ printf '%s\n ' cmd/*.c | sed -e 's;.c$;;' | tr -d '\n'
echo
printf 'MAN1 = '
@@ -123,34 +123,26 @@ rm -f config.mk ; or_die
check_cmd CC "$CC" || exit 1
check_cmd MAKE "$MAKE" || exit 1
-if check_cmd GCOV "$GCOV"
+if ! check_cmd GCOV "$GCOV"
then
- :
-else
echo 'Notice: "coverage" target will fail'
GCOV="false"
fi
-if check_cmd MANDOC "$MANDOC"
+if ! check_cmd MANDOC "$MANDOC"
then
- :
-else
echo 'Notice: Linting depending on mandoc disabled'
MANDOC="true"
fi
-if check_cmd SHELLCHECK "$SHELLCHECK"
+if ! check_cmd SHELLCHECK "$SHELLCHECK"
then
- :
-else
echo 'Notice: Linting depending on shellcheck disabled'
SHELLCHECK="true"
fi
-if check_cmd FLAWFINDER "$FLAWFINDER"
+if ! check_cmd FLAWFINDER "$FLAWFINDER"
then
- :
-else
echo 'Notice: Linting depending on flawfinder disabled'
FLAWFINDER="true"
fi