Add install-html target to makefile
authorDaniel White <daniel@whitehouse.id.au>
Fri, 25 Jul 2008 18:00:43 +0000 (04:00 +1000)
committerDaniel White <daniel@whitehouse.id.au>
Wed, 30 Jul 2008 15:02:51 +0000 (01:02 +1000)
Signed-off-by: Daniel White <daniel@whitehouse.id.au>
Documentation/Makefile
Makefile

index d4189b9..c53c4af 100644 (file)
@@ -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.
 #
index 95413a4..9322fe0 100644 (file)
--- 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