From ea9716ff211699b19493ffdcab3778b1b21c2ad3 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 3 Apr 2025 10:40:18 -0300 Subject: Makefile: Normalize install dirs list --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index b477ffa..9d37ae0 100644 --- a/Makefile +++ b/Makefile @@ -67,9 +67,10 @@ clean: install: all mkdir -p \ '$(DESTDIR)$(BINDIR)' \ - '$(DESTDIR)$(SRCDIR)' + '$(DESTDIR)$(SRCDIR)' \ + cp $(sources.sh) '$(DESTDIR)$(BINDIR)' - cp $(sources.sh) '$(DESTDIR)$(SRCDIR)' + cp $(sources) '$(DESTDIR)$(SRCDIR)' ## Uninstalls from $(DESTDIR)$(PREFIX). This is a perfect mirror @@ -77,7 +78,8 @@ install: all ## A dedicated test asserts that this is always true. uninstall: rm -rf \ - '$(DESTDIR)$(SRCDIR)' + '$(DESTDIR)$(SRCDIR)' \ + for f in $(sources.sh); do \ rm -f '$(DESTDIR)$(BINDIR)'/"$${f#src/}"; \ done -- cgit v1.2.3