From 20062ef275fb56594efaf99fc0f20083b101dbc4 Mon Sep 17 00:00:00 2001 From: Loup Vaillant Date: Sun, 24 Sep 2017 11:21:16 +0200 Subject: [PATCH] Rearranged directory creation for makefile installation target 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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index d83bcd4..4b8a068 100644 --- 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" -- 2.47.3