Skip to content

Commit 4d24d52

Browse files
sschuberthgitster
authored andcommitted
subtree: add an install-html target
Also adjust ignore rules accordingly. Signed-off-by: Sebastian Schuberth <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 670a3c1 commit 4d24d52

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

contrib/subtree/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
*~
22
git-subtree
3-
git-subtree.xml
43
git-subtree.1
4+
git-subtree.html
5+
git-subtree.xml
56
mainline
67
subproj

contrib/subtree/Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ all::
55
-include ../../config.mak
66

77
prefix ?= /usr/local
8-
mandir ?= $(prefix)/share/man
98
gitexecdir ?= $(prefix)/libexec/git-core
9+
mandir ?= $(prefix)/share/man
1010
man1dir ?= $(mandir)/man1
11+
htmldir ?= $(prefix)/share/doc/git-doc
1112

1213
../../GIT-VERSION-FILE: FORCE
1314
$(MAKE) -C ../../ GIT-VERSION-FILE
@@ -49,12 +50,16 @@ install: $(GIT_SUBTREE)
4950
$(INSTALL) -d -m 755 $(DESTDIR)$(gitexecdir)
5051
$(INSTALL) -m 755 $(GIT_SUBTREE) $(DESTDIR)$(gitexecdir)
5152

52-
install-doc: install-man
53+
install-doc: install-man install-html
5354

5455
install-man: $(GIT_SUBTREE_DOC)
5556
$(INSTALL) -d -m 755 $(DESTDIR)$(man1dir)
5657
$(INSTALL) -m 644 $^ $(DESTDIR)$(man1dir)
5758

59+
install-html: $(GIT_SUBTREE_HTML)
60+
$(INSTALL) -d -m 755 $(DESTDIR)$(htmldir)
61+
$(INSTALL) -m 644 $^ $(DESTDIR)$(htmldir)
62+
5863
$(GIT_SUBTREE_DOC): $(GIT_SUBTREE_XML)
5964
$(XMLTO) -m $(MANPAGE_XSL) man $^
6065

0 commit comments

Comments
 (0)