commit ed856d9b36c147373b61e6c83da9637b6abd9be9
parent b9eb9df773a79b49f53b7e55bba2be441761624c
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Wed, 8 Oct 2025 09:38:01 +0200
Fix the installation/uninstallation of the doc
Due to a copy/paste issue, the installation directory of the README and
COPYING files was incorrect. In addition, their access rights were not
correctly defined.
Diffstat:
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
@@ -113,14 +113,16 @@ install: library pkg
install() { mode="$$1"; prefix="$$2"; shift 2; \
mkdir -p "$${prefix}"; \
cp "$$@" "$${prefix}"; \
- chmod "$${mode}" "$${prefix}/$${@##*/}"; \
+ printf '%s\n' "$${@}" | while read -r i; do \
+ chmod "$${mode}" "$${prefix}/$${i##*/}"; \
+ done; \
}; \
install 755 "$(DESTDIR)$(LIBPREFIX)" $(LIBNAME); \
install 755 "$(DESTDIR)$(BINPREFIX)" scem; \
install 644 "$(DESTDIR)$(MANPREFIX)/man1" doc/scem.1; \
install 644 "$(DESTDIR)$(LIBPREFIX)/pkgconfig" scem.pc; \
install 644 "$(DESTDIR)$(INCPREFIX)/star" src/scem.h; \
- install 644 "$(DESTDIR)$(PREFIX)/share/doc/star-uniq" COPYING README.md
+ install 644 "$(DESTDIR)$(PREFIX)/share/doc/star-cem" COPYING README.md
uninstall:
rm -f "$(DESTDIR)$(LIBPREFIX)/$(LIBNAME)"
@@ -128,8 +130,8 @@ uninstall:
rm -f "$(DESTDIR)$(MANPREFIX)/man1/scem.1"
rm -f "$(DESTDIR)$(LIBPREFIX)/pkgconfig/scem.pc"
rm -f "$(DESTDIR)$(INCPREFIX)/star/scem.h"
- rm -f "$(DESTDIR)$(PREFIX)/share/doc/star-uniq/COPYING"
- rm -f "$(DESTDIR)$(PREFIX)/share/doc/star-uniq/README.md"
+ rm -f "$(DESTDIR)$(PREFIX)/share/doc/star-cem/COPYING"
+ rm -f "$(DESTDIR)$(PREFIX)/share/doc/star-cem/README.md"
lint:
mandoc -T lint -Wbase doc/scem.1