X-Git-Url: https://git.distorted.org.uk/~mdw/tig/blobdiff_plain/b76c2afc7513ecf74694a73bf004bfb4315758f6..4c6fabc213355ec6a575d36d53baf661704c4056:/Makefile diff --git a/Makefile b/Makefile index 10339ac..9a0cb60 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,4 @@ +PREFIX = $(HOME) LDFLAGS = -lcurses CFLAGS = -g '-DVERSION="$(VERSION)"' -Wall PROGS = tig @@ -9,7 +10,14 @@ docs: $(DOCS) install: all for prog in $(PROGS); do \ - install $$prog $(HOME)/bin; \ + install $$prog $(PREFIX)/bin; \ + done + +install-docs: docs + for doc in $(DOCS); do \ + case "$$doc" in \ + *.1) install $$doc $(PREFIX)/man/man1 ;; \ + esac \ done clean: @@ -26,10 +34,10 @@ tig.1.txt: tig.c sed 's/\*\///;s/^[^*]*\* *//' > $@ %.1.html : %.1.txt - asciidoc -b xhtml11 -d manpage -f asciidoc.conf $< + asciidoc -b xhtml11 -d manpage $< %.1.xml : %.1.txt - asciidoc -b docbook -d manpage -f asciidoc.conf $< + asciidoc -b docbook -d manpage $< %.1 : %.1.xml xmlto man $<