{"thread":{"id":"1252","subject":"[PATCH] Add doc and install-doc targets to the Makefile","startedAt":"2005-07-15T01:21:57Z","lastAt":"2005-07-15T01:21:57Z","messageCount":1,"participants":["Eric W. Biederman"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"6164","messageId":"m1u0iwx3re.fsf@ebiederm.dsl.xmission.com","threadId":"1252","inReplyTo":null,"subject":"[PATCH] Add doc and install-doc targets to the Makefile","fromName":"Eric W. Biederman","fromEmail":"ebiederm@xmission.com","sentAt":"2005-07-15T01:21:57Z","receivedAt":"2005-07-15T01:21:57Z","isPatch":true,"sender":{"key":"ebiederm@xmission.com","avatar":"https://avatars.githubusercontent.com/u/7477136?v=4"},"body":"\nThis makes it straight forward for people wanting to build\nand install the git man pages and the rest of the documentation\nto do so.\n\nSigned-off-by: Eric W. Biederman <ebiederm@xmission.com>\n---\n\n Documentation/Makefile |   13 +++++++++++++\n Makefile               |    6 ++++++\n 2 files changed, 19 insertions(+), 0 deletions(-)\n\n81c744189071d241dbb43b55b8694365a769e08d\ndiff --git a/Documentation/Makefile b/Documentation/Makefile\n--- a/Documentation/Makefile\n+++ b/Documentation/Makefile\n@@ -6,6 +6,14 @@ DOC_HTML=$(patsubst %.txt,%.html,$(MAN1_\n DOC_MAN1=$(patsubst %.txt,%.1,$(MAN1_TXT))\n DOC_MAN7=$(patsubst %.txt,%.7,$(MAN7_TXT))\n \n+prefix=$(HOME)\n+bin=$(prefix)/bin\n+mandir=$(prefix)/man\n+man1=$(mandir)/man1\n+man7=$(mandir)/man7\n+\n+INSTALL=install\n+\n #\n # Please note that there is a minor bug in asciidoc.\n # The version after 6.0.3 _will_ include the patch found here:\n@@ -24,6 +32,11 @@ man: man1 man7\n man1: $(DOC_MAN1)\n man7: $(DOC_MAN7)\n \n+install:\n+\t$(INSTALL) -m755 -d $(dest)/$(man1) $(dest)/$(man7)\n+\t$(INSTALL) $(DOC_MAN1) $(dest)/$(man1)\n+\t$(INSTALL) $(DOC_MAN7) $(dest)/$(man7)\n+\n # 'include' dependencies\n git-diff-%.txt: diff-format.txt diff-options.txt\n \ttouch $@\ndiff --git a/Makefile b/Makefile\n--- a/Makefile\n+++ b/Makefile\n@@ -191,6 +191,12 @@ rpm: dist\n test: all\n \t$(MAKE) -C t/ all\n \n+doc:\n+\t$(MAKE) -C Documentation all\n+\n+install-doc:\n+\t$(MAKE) -C Documentation install\n+\n clean:\n \trm -f *.o mozilla-sha1/*.o ppc/*.o $(PROG) $(LIB_FILE)\n \trm -f git-core-*.tar.gz git-core.spec\n"}]}