From f0c516f33b60310a87173e768c97df8c852e5c75 Mon Sep 17 00:00:00 2001 From: Kai Krakow Date: Tue, 9 Jan 2018 01:54:41 +0100 Subject: [PATCH] Makefile: let "make install" install the complete distribution It happened more than once that I ran just "make install" only, which doesn't install the scripts. Let's fix this by renaming the previous install target to install_bees, and then make a new install target which depends on each install target and thus installs the complete distribution. It doesn't hurt to install those few scripts. I don't see the point in separating the install targets as it was previously done. Signed-off-by: Kai Krakow --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 24fbdaf..bc5d8f5 100644 --- a/Makefile +++ b/Makefile @@ -34,8 +34,8 @@ README.html: README.md $(MARKDOWN) README.md > README.html.new mv -f README.html.new README.html -install: ## Install bees + libs -install: lib src test +install_bees: ## Install bees + libs +install_bees: lib src test install -Dm644 lib/libcrucible.so $(PREFIX)/usr/lib/libcrucible.so install -Dm755 bin/bees $(LIBEXEC_PREFIX)/bees @@ -45,5 +45,8 @@ install_scripts: scripts install -Dm644 scripts/beesd.conf.sample $(PREFIX)/etc/bees/beesd.conf.sample install -Dm644 scripts/beesd@.service $(PREFIX)/lib/systemd/system/beesd@.service +install: ## Install distribution +install: install_bees install_scripts + help: ## Show help @fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##/\t/'