rsys

Basic data structures and low-level features
git clone git://git.meso-star.fr/rsys.git
Log | Files | Refs | README | LICENSE

commit bebcb0290c7dfadf956878cdb4d92e673a5f2c8b
parent 6df58655b22396886581eee417a1a83480dda23b
Author: vaplv <vaplv@free.fr>
Date:   Fri, 25 Apr 2025 15:21:00 +0200

Correct Makefile “install” target

Do not reinstall files if they are unchanged

Diffstat:
MMakefile | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile @@ -165,7 +165,7 @@ install: library pkg install() { mode="$$1"; prefix="$$2"; shift 2; \ mkdir -p "$${prefix}"; \ for i in "$$@"; do \ - if ! cmp -s "$${i}" "$${prefix}/$${i}"; then \ + if ! cmp -s "$${i}" "$${prefix}/$${i##*/}"; then \ cp "$$@" "$${prefix}"; \ chmod "$${mode}" "$$@"; \ fi; \