Makefile: make the symlink in BIN_DIR refer to the executable in DESTDIR
[tweeper.git] / Makefile
index d0c6b07..0102bc2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -12,9 +12,6 @@ all:
 clean:
        rm -f tweeper.1
 
 clean:
        rm -f tweeper.1
 
-changelog:
-       git log --pretty="format:%ai  %aN  <%aE>%n%n%x09* %s%d%n" > ChangeLog
-
 docs:
        a2x -f manpage tweeper.1.asciidoc
 
 docs:
        a2x -f manpage tweeper.1.asciidoc
 
@@ -24,10 +21,11 @@ installdocs: docs
 
 install: installdocs
        install -d $(DESTDIR)$(TWEEPER_DIR)
 
 install: installdocs
        install -d $(DESTDIR)$(TWEEPER_DIR)
-       install -m644 *.xsl $(DESTDIR)$(TWEEPER_DIR)
        install -m644 *.php $(DESTDIR)$(TWEEPER_DIR)
        install -m755 tweeper $(DESTDIR)$(TWEEPER_DIR)
        install -m644 *.php $(DESTDIR)$(TWEEPER_DIR)
        install -m755 tweeper $(DESTDIR)$(TWEEPER_DIR)
+       install -d $(DESTDIR)$(TWEEPER_DIR)/src
+       install -m644 src/* $(DESTDIR)$(TWEEPER_DIR)/src
        install -d $(DESTDIR)$(BIN_DIR)
        install -d $(DESTDIR)$(BIN_DIR)
-       ln -sf $(TWEEPER_DIR)/tweeper $(DESTDIR)$(BIN_DIR)/tweeper
-       @echo -e "\n\nINTALLATION COMPLETE"
+       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 "Make sure '$(PHP_SCRIPT_DIR)' is in PHP include_path!\n"