From 16c68e7d156a3a9f9188b9b9c5d8aefd5c9e502c Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Fri, 8 Nov 2013 16:22:26 +0100 Subject: [PATCH] Add a Makefile to simplify installation and packaging --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e39db8e --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +# Packagers may want to override this! +prefix ?= /usr/local + +PHP_SCRIPT_DIR ?= $(prefix)/share/php +BIN_DIR := $(prefix)/bin + +TWEEPER_DIR := $(PHP_SCRIPT_DIR)/tweeper + +all: +clean: + +install: + install -d $(DESTDIR)$(TWEEPER_DIR) + install -m644 *.xsl $(DESTDIR)$(TWEEPER_DIR) + install -m644 *.php $(DESTDIR)$(TWEEPER_DIR) + install -m755 tweeper $(DESTDIR)$(TWEEPER_DIR) + install -d $(DESTDIR)$(BIN_DIR) + ln -sf $(TWEEPER_DIR)/tweeper $(DESTDIR)$(BIN_DIR)/tweeper + @echo -e "\n\nINTALLATION COMPLETE" + @echo -e "Make sure '$(PHP_SCRIPT_DIR)' is in PHP include_path!\n" -- 2.1.4