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 a2x -f manpage tweeper.1.asciidoc
19 install -d $(DESTDIR)$(MAN_DIR)/man1
20 install -m644 tweeper.1 $(DESTDIR)$(MAN_DIR)/man1
23 install -d $(DESTDIR)$(TWEEPER_DIR)
24 install -m644 *.xsl $(DESTDIR)$(TWEEPER_DIR)
25 install -m644 *.php $(DESTDIR)$(TWEEPER_DIR)
26 install -m755 tweeper $(DESTDIR)$(TWEEPER_DIR)
27 install -d $(DESTDIR)$(BIN_DIR)
28 ln -sf $(TWEEPER_DIR)/tweeper $(DESTDIR)$(BIN_DIR)/tweeper
29 @echo -e "\n\nINSTALLATION COMPLETE"
30 @echo -e "Make sure '$(PHP_SCRIPT_DIR)' is in PHP include_path!\n"