about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-10-14 14:07:47 +0200
committerbptato <nincsnevem662@gmail.com>2023-10-14 14:07:47 +0200
commit0630fcf365f292fd9428c4ff4f6682afc8f7ac0c (patch)
treea6bb0535af4aaf67fe3f3fd43413b3f8d547ce88
parent8d435dca3afd16b2eb3fb0b41973f4f74b200653 (diff)
downloadchawan-0630fcf365f292fd9428c4ff4f6682afc8f7ac0c.tar.gz
Makefile: create manpage directories, fix wrong file modes
* mkdir manpage directories too (not just prefix/bin)
* use 0644 file mode instead of the nonsensical 0655

See https://todo.sr.ht/~bptato/chawan/1
-rw-r--r--Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 787a789b..9deee797 100644
--- a/Makefile
+++ b/Makefile
@@ -74,12 +74,14 @@ install:
 	mkdir -p "$(DESTDIR)$(prefix)/bin"
 	install -m755 cha "$(DESTDIR)$(prefix)/bin"
 	if test -d "$(OBJDIR)/man"; then \
-	install -m655 "$(OBJDIR)/man/cha-config.5" "$(DESTDIR)$(manprefix5)"; \
-	install -m655 "$(OBJDIR)/man/cha-mailcap.5" "$(DESTDIR)$(manprefix5)"; \
-	install -m655 "$(OBJDIR)/man/cha-mime.types.5" "$(DESTDIR)$(manprefix5)"; \
-	install -m655 "$(OBJDIR)/man/cha-localcgi.5" "$(DESTDIR)$(manprefix5)"; \
-	install -m655 "$(OBJDIR)/man/cha-urimethodmap.5" "$(DESTDIR)$(manprefix5)"; \
-	install -m655 "$(OBJDIR)/man/cha.1" "$(DESTDIR)$(manprefix1)"; \
+	mkdir -p "$(DESTDIR)$(manprefix5)"; \
+	mkdir -p "$(DESTDIR)$(manprefix1)"; \
+	install -m644 "$(OBJDIR)/man/cha-config.5" "$(DESTDIR)$(manprefix5)"; \
+	install -m644 "$(OBJDIR)/man/cha-mailcap.5" "$(DESTDIR)$(manprefix5)"; \
+	install -m644 "$(OBJDIR)/man/cha-mime.types.5" "$(DESTDIR)$(manprefix5)"; \
+	install -m644 "$(OBJDIR)/man/cha-localcgi.5" "$(DESTDIR)$(manprefix5)"; \
+	install -m644 "$(OBJDIR)/man/cha-urimethodmap.5" "$(DESTDIR)$(manprefix5)"; \
+	install -m644 "$(OBJDIR)/man/cha.1" "$(DESTDIR)$(manprefix1)"; \
 	fi
 
 .PHONY: uninstall