]> git.codecow.com Git - Monocypher.git/commitdiff
Rearranged directory creation for makefile installation target
authorLoup Vaillant <loup@loup-vaillant.fr>
Sun, 24 Sep 2017 09:21:16 +0000 (11:21 +0200)
committerLoup Vaillant <loup@loup-vaillant.fr>
Sun, 24 Sep 2017 09:21:16 +0000 (11:21 +0200)
Tweaking #40 pull request.  Have the `mkdir` on several lines because
of my 80 columns OCD.  It also makes prettier printouts at runtime.

Also removed the spurrious creation of the man directory (it was
already done on the `install-doc:` target).

makefile

index d83bcd4fd2ca87ff168ddffea7830f54e004bb16..4b8a0680c06ba795a9c43eb48c7242d73e7610ad 100644 (file)
--- a/makefile
+++ b/makefile
@@ -28,7 +28,9 @@ MAN_DIR=$(DESTDIR)/$(PREFIX)/share/man/man3
 
 all    : library
 install: library src/monocypher.h install-doc
-       mkdir -p $(DESTDIR)/$(PREFIX)/lib $(DESTDIR)/$(PREFIX)/include $(PKGCONFIG) $(MAN_DIR)
+       mkdir -p $(DESTDIR)/$(PREFIX)/include
+       mkdir -p $(DESTDIR)/$(PREFIX)/lib
+       mkdir -p $(PKGCONFIG)
        cp lib/libmonocypher.a lib/libmonocypher.so $(DESTDIR)/$(PREFIX)/lib
        cp src/monocypher.h $(DESTDIR)/$(PREFIX)/include
        @echo "Creating $(PKGCONFIG)/monocypher.pc"