From: Fabio Scotoni <34964387+fscoto@users.noreply.github.com> Date: Sat, 25 Feb 2023 09:59:41 +0000 (+0100) Subject: makefile: fix install-doc X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=f07203b91220ff84d7a70d07aaad9130baea9112;p=Monocypher.git makefile: fix install-doc During the documentation overhaul in 85a7c3742f06ab55fdf523a7a6a9cfe5cda09837, generating the man page symlinks was automated (introduction of doc/gen_doc.sh, now called doc/doc_gen.sh). However, the install-doc target of the makefile fails to account for the source folder not necessarily existing. This change runs doc/doc_gen.sh before attempting to install the man pages. This has the questionable side effect of creating a folder as root and creating a bunch of files as root (including the HTML files, i.e. running mandoc as root) when doing sudo make install, but the average user will "just" install and forget about it anyway. --- diff --git a/makefile b/makefile index 2a78218..b86bbc8 100644 --- a/makefile +++ b/makefile @@ -100,6 +100,7 @@ install: library src/monocypher.h monocypher.pc install-doc > $(DESTDIR)/$(PKGCONFIGDIR)/monocypher.pc install-doc: + doc/doc_gen.sh mkdir -p $(DESTDIR)/$(MANDIR) cp -PR doc/man3/*.3monocypher $(DESTDIR)/$(MANDIR)