From 6f1c6378cf01dd5d91c5dbcba987555bfbd029d5 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 26 Apr 2015 08:57:51 +0100 Subject: Makefile: create subdirs of the install directory too. Now you can 'make install prefix=/some/previously/nonexistent/path' and have all the necessary subdirs created for you. --- Makefile | 2 +- doc/Makefile | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f8efeb1..a60bac7 100644 --- a/Makefile +++ b/Makefile @@ -116,7 +116,7 @@ clean:: rm -f *.o halibut core install: - mkdir -p $(prefix) + mkdir -p $(prefix) $(bindir) $(INSTALL) -m 755 halibut $(bindir)/halibut $(MAKE) -C ../doc install prefix="$(prefix)" INSTALL="$(INSTALL)" diff --git a/doc/Makefile b/doc/Makefile index 63299ad..81a1fd8 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -17,6 +17,7 @@ halibut.1: manpage.but $(HALIBUT) --man=halibut.1 manpage.but install: + mkdir -p $(man1dir) $(INSTALL) -m 644 halibut.1 $(man1dir)/halibut.1 clean: -- cgit v1.1