Makefile: make the symlink in BIN_DIR refer to the executable in DESTDIR
[tweeper.git] / Makefile
index 7937d41..0102bc2 100644 (file)
--- 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)
        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"
        @echo -e "\n\nINSTALLATION COMPLETE"
        @echo -e "Make sure '$(PHP_SCRIPT_DIR)' is in PHP include_path!\n"