1 # Packagers may want to override this!
4 PHP_SCRIPT_DIR ?= $(prefix)/share/php
5 BIN_DIR := $(prefix)/bin
6 MAN_DIR := $(prefix)/share/man
8 TWEEPER_DIR := $(PHP_SCRIPT_DIR)/tweeper
16 git log --pretty="format:%ai %aN <%aE>%n%n%x09* %s%d%n" > ChangeLog
19 a2x -f manpage tweeper.1.asciidoc
22 install -d $(DESTDIR)$(MAN_DIR)/man1
23 install -m644 tweeper.1 $(DESTDIR)$(MAN_DIR)/man1
26 install -d $(DESTDIR)$(TWEEPER_DIR)
27 install -m644 *.xsl $(DESTDIR)$(TWEEPER_DIR)
28 install -m644 *.php $(DESTDIR)$(TWEEPER_DIR)
29 install -m755 tweeper $(DESTDIR)$(TWEEPER_DIR)
30 install -d $(DESTDIR)$(BIN_DIR)
31 ln -sf $(TWEEPER_DIR)/tweeper $(DESTDIR)$(BIN_DIR)/tweeper
32 @echo -e "\n\nINSTALLATION COMPLETE"
33 @echo -e "Make sure '$(PHP_SCRIPT_DIR)' is in PHP include_path!\n"