]> git.codecow.com Git - Monocypher.git/commitdiff
Added a separate install-doc target
authorLoup Vaillant <loup@loup-vaillant.fr>
Sat, 23 Sep 2017 17:07:17 +0000 (19:07 +0200)
committerLoup Vaillant <loup@loup-vaillant.fr>
Sat, 23 Sep 2017 17:07:17 +0000 (19:07 +0200)
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

index 2a332835ee026c1cec45b9bbd654ab08de37f45b..4ca9c42703e005a73634a029c71c2b195aebf0c0 100644 (file)
--- 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)