From: Antonio Ospite Date: Sat, 10 Dec 2016 20:59:19 +0000 (+0100) Subject: Makefile: make the symlink in BIN_DIR refer to the executable in DESTDIR X-Git-Tag: v1.0.0~3 X-Git-Url: https://git.ao2.it/tweeper.git/commitdiff_plain/3035fd6142ce3459fb7ba28c2f56a7c44fc47dd5?hp=26c0c241140cf859141313bca3758fa52da8a8ca Makefile: make the symlink in BIN_DIR refer to the executable in DESTDIR Also make the symlink relative, this way it is always valid whether DESTDIR is specified or not. --- diff --git a/Makefile b/Makefile index 7937d41..0102bc2 100644 --- a/Makefile +++ b/Makefile @@ -26,6 +26,6 @@ install: installdocs install -d $(DESTDIR)$(TWEEPER_DIR)/src install -m644 src/* $(DESTDIR)$(TWEEPER_DIR)/src install -d $(DESTDIR)$(BIN_DIR) - ln -sf $(TWEEPER_DIR)/tweeper $(DESTDIR)$(BIN_DIR)/tweeper + ln -rsf $(DESTDIR)$(TWEEPER_DIR)/tweeper $(DESTDIR)$(BIN_DIR)/tweeper @echo -e "\n\nINSTALLATION COMPLETE" @echo -e "Make sure '$(PHP_SCRIPT_DIR)' is in PHP include_path!\n"