From: Daniel White Date: Fri, 25 Jul 2008 18:00:43 +0000 (+1000) Subject: Add install-html target to makefile X-Git-Tag: v0.15-rc1~177 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/fd52912d651e59701714b4b957757bca4725a728?ds=sidebyside Add install-html target to makefile Signed-off-by: Daniel White --- diff --git a/Documentation/Makefile b/Documentation/Makefile index d4189b9..c53c4af 100644 --- a/Documentation/Makefile +++ b/Documentation/Makefile @@ -12,6 +12,7 @@ DOC_PDF += $(patsubst %,%.pdf,$(ARTICLES) $(SP_ARTICLES)) DOC_MAN1=$(patsubst %.txt,%.1,$(MAN1_TXT)) prefix?=$(HOME) +htmldir?=$(prefix)/share/doc/stgit mandir?=$(prefix)/share/man man1dir=$(mandir)/man1 # DESTDIR= @@ -41,6 +42,10 @@ man1: $(DOC_MAN1) install: man $(INSTALL) -d -m755 $(DESTDIR)$(man1dir) $(INSTALL) -m644 $(DOC_MAN1) $(DESTDIR)$(man1dir) + +install-html: html + $(INSTALL) -d -m755 $(DESTDIR)$(htmldir) + $(INSTALL) -m644 $(DOC_HTML) $(DESTDIR)$(htmldir) # # Determine "include::" file references in asciidoc files. # diff --git a/Makefile b/Makefile index 95413a4..9322fe0 100644 --- a/Makefile +++ b/Makefile @@ -16,6 +16,9 @@ doc: install-doc: $(MAKE) -C Documentation install +install-html: + $(MAKE) -C Documentation install-html + test: cd t && $(MAKE) all @@ -36,4 +39,4 @@ clean: tags: ctags -e -R stgit/* -.PHONY: all install doc install-doc test test_patches clean +.PHONY: all install doc install-doc install-html test test_patches clean