X-Git-Url: https://git.ao2.it/tweeper.git/blobdiff_plain/16c68e7d156a3a9f9188b9b9c5d8aefd5c9e502c..3e7e6750533bddf1910b7d07d5a283330b051ca3:/Makefile?ds=inline diff --git a/Makefile b/Makefile index e39db8e..d0c6b07 100644 --- a/Makefile +++ b/Makefile @@ -3,13 +3,26 @@ prefix ?= /usr/local PHP_SCRIPT_DIR ?= $(prefix)/share/php BIN_DIR := $(prefix)/bin +MAN_DIR := $(prefix)/share/man TWEEPER_DIR := $(PHP_SCRIPT_DIR)/tweeper all: + 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 + +installdocs: docs + install -d $(DESTDIR)$(MAN_DIR)/man1 + install -m644 tweeper.1 $(DESTDIR)$(MAN_DIR)/man1 -install: +install: installdocs install -d $(DESTDIR)$(TWEEPER_DIR) install -m644 *.xsl $(DESTDIR)$(TWEEPER_DIR) install -m644 *.php $(DESTDIR)$(TWEEPER_DIR)