From 8a01ec00860517ae3d446b8675f78ca0398b184d Mon Sep 17 00:00:00 2001 From: Loup Vaillant Date: Sat, 23 Sep 2017 19:07:17 +0200 Subject: [PATCH] Added a separate install-doc target Since Monocypher can be used without any installation (just copy the source files to your project), some users may want the man pages without an actual installation. `make install` still installs everything, documentation included. --- makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/makefile b/makefile index 2a33283..4ca9c42 100644 --- a/makefile +++ b/makefile @@ -24,10 +24,10 @@ PREFIX=usr/local PKGCONFIG=$(DESTDIR)/$(PREFIX)/lib/pkgconfig MAN_DIR=$(DESTDIR)/$(PREFIX)/share/man/man3 -.PHONY: all library static-library dynamic-library clean install test speed +.PHONY: all install-doc library static-library dynamic-library clean install test speed all : library -install: library src/monocypher.h +install: library src/monocypher.h install-doc mkdir -p $(DESTDIR)/$(PREFIX)/lib cp lib/libmonocypher.a lib/libmonocypher.so $(DESTDIR)/$(PREFIX)/lib cp src/monocypher.h $(DESTDIR)/$(PREFIX)/include @@ -44,6 +44,8 @@ install: library src/monocypher.h @echo '' >> $(PKGCONFIG)/monocypher.pc @echo 'Libs: -L$${libdir} -lmonocypher' >> $(PKGCONFIG)/monocypher.pc @echo 'Cflags: -I$${includedir}' >> $(PKGCONFIG)/monocypher.pc + +install-doc: mkdir -p $(MAN_DIR) cp -r doc/man/man3/* $(MAN_DIR) -- 2.47.3