2006-03-05 12:36:33 +03:00
|
|
|
MAN1_TXT= \
|
|
|
|
$(filter-out $(addsuffix .txt, $(ARTICLES) $(SP_ARTICLES)), \
|
|
|
|
$(wildcard git-*.txt)) \
|
2008-06-06 11:07:32 +04:00
|
|
|
gitk.txt git.txt
|
2008-06-06 11:07:28 +04:00
|
|
|
MAN5_TXT=gitattributes.txt gitignore.txt gitmodules.txt githooks.txt \
|
|
|
|
gitrepository-layout.txt
|
2008-06-06 11:07:32 +04:00
|
|
|
MAN7_TXT=gitcli.txt gittutorial.txt gittutorial-2.txt \
|
2008-06-06 11:07:28 +04:00
|
|
|
gitcvs-migration.txt gitcore-tutorial.txt gitglossary.txt \
|
2010-07-05 20:11:40 +04:00
|
|
|
gitdiffcore.txt gitrevisions.txt gitworkflows.txt
|
2005-05-11 01:32:39 +04:00
|
|
|
|
2007-12-10 12:15:57 +03:00
|
|
|
MAN_TXT = $(MAN1_TXT) $(MAN5_TXT) $(MAN7_TXT)
|
|
|
|
MAN_XML=$(patsubst %.txt,%.xml,$(MAN_TXT))
|
|
|
|
MAN_HTML=$(patsubst %.txt,%.html,$(MAN_TXT))
|
|
|
|
|
|
|
|
DOC_HTML=$(MAN_HTML)
|
2005-08-31 00:51:01 +04:00
|
|
|
|
2008-06-06 11:07:28 +04:00
|
|
|
ARTICLES = howto-index
|
2005-12-10 10:07:29 +03:00
|
|
|
ARTICLES += everyday
|
2006-03-05 12:36:33 +03:00
|
|
|
ARTICLES += git-tools
|
2009-11-08 18:09:47 +03:00
|
|
|
ARTICLES += git-bisect-lk2009
|
2005-08-31 00:51:01 +04:00
|
|
|
# with their own formatting rules.
|
2008-01-15 03:35:02 +03:00
|
|
|
SP_ARTICLES = howto/revert-branch-rebase howto/using-merge-subtree user-manual
|
2007-11-25 10:48:04 +03:00
|
|
|
API_DOCS = $(patsubst %.txt,%,$(filter-out technical/api-index-skel.txt technical/api-index.txt, $(wildcard technical/api-*.txt)))
|
|
|
|
SP_ARTICLES += $(API_DOCS)
|
|
|
|
SP_ARTICLES += technical/api-index
|
2005-08-31 00:51:01 +04:00
|
|
|
|
|
|
|
DOC_HTML += $(patsubst %,%.html,$(ARTICLES) $(SP_ARTICLES))
|
2005-08-30 10:09:22 +04:00
|
|
|
|
2005-05-22 21:44:15 +04:00
|
|
|
DOC_MAN1=$(patsubst %.txt,%.1,$(MAN1_TXT))
|
2007-04-22 11:11:41 +04:00
|
|
|
DOC_MAN5=$(patsubst %.txt,%.5,$(MAN5_TXT))
|
2005-05-22 21:44:15 +04:00
|
|
|
DOC_MAN7=$(patsubst %.txt,%.7,$(MAN7_TXT))
|
|
|
|
|
2005-10-09 02:54:37 +04:00
|
|
|
prefix?=$(HOME)
|
2006-06-30 00:11:25 +04:00
|
|
|
bindir?=$(prefix)/bin
|
2007-12-02 08:07:55 +03:00
|
|
|
htmldir?=$(prefix)/share/doc/git-doc
|
2008-12-11 01:44:50 +03:00
|
|
|
pdfdir?=$(prefix)/share/doc/git-doc
|
2007-05-08 14:49:31 +04:00
|
|
|
mandir?=$(prefix)/share/man
|
2006-06-30 01:26:54 +04:00
|
|
|
man1dir=$(mandir)/man1
|
2007-04-20 07:47:04 +04:00
|
|
|
man5dir=$(mandir)/man5
|
2006-06-30 01:26:54 +04:00
|
|
|
man7dir=$(mandir)/man7
|
2005-08-05 03:56:38 +04:00
|
|
|
# DESTDIR=
|
2005-07-15 05:21:57 +04:00
|
|
|
|
2007-02-11 18:54:40 +03:00
|
|
|
ASCIIDOC=asciidoc
|
2007-02-14 02:15:05 +03:00
|
|
|
ASCIIDOC_EXTRA =
|
2009-03-27 09:43:58 +03:00
|
|
|
MANPAGE_XSL = manpage-normal.xsl
|
2009-03-27 09:44:05 +03:00
|
|
|
XMLTO_EXTRA =
|
2005-10-09 02:54:37 +04:00
|
|
|
INSTALL?=install
|
2007-07-14 21:51:44 +04:00
|
|
|
RM ?= rm -f
|
2006-12-23 19:26:09 +03:00
|
|
|
DOC_REF = origin/man
|
2008-09-10 00:44:17 +04:00
|
|
|
HTML_REF = origin/html
|
2005-07-15 05:21:57 +04:00
|
|
|
|
2007-08-06 14:22:57 +04:00
|
|
|
infodir?=$(prefix)/share/info
|
|
|
|
MAKEINFO=makeinfo
|
|
|
|
INSTALL_INFO=install-info
|
|
|
|
DOCBOOK2X_TEXI=docbook2x-texi
|
2008-12-11 01:44:50 +03:00
|
|
|
DBLATEX=dblatex
|
2007-12-01 05:36:34 +03:00
|
|
|
ifndef PERL_PATH
|
|
|
|
PERL_PATH = /usr/bin/perl
|
|
|
|
endif
|
2007-08-06 14:22:57 +04:00
|
|
|
|
2006-09-01 02:31:08 +04:00
|
|
|
-include ../config.mak.autogen
|
2007-02-28 23:57:42 +03:00
|
|
|
-include ../config.mak
|
2006-09-01 02:31:08 +04:00
|
|
|
|
2009-03-27 09:44:00 +03:00
|
|
|
#
|
|
|
|
# For asciidoc ...
|
|
|
|
# -7.1.2, no extra settings are needed.
|
|
|
|
# 8.0-, set ASCIIDOC8.
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# For docbook-xsl ...
|
|
|
|
# -1.68.1, set ASCIIDOC_NO_ROFF? (based on changelog from 1.73.0)
|
2009-04-01 12:50:34 +04:00
|
|
|
# 1.69.0, no extra settings are needed?
|
|
|
|
# 1.69.1-1.71.0, set DOCBOOK_SUPPRESS_SP?
|
|
|
|
# 1.71.1, no extra settings are needed?
|
2009-03-27 09:44:00 +03:00
|
|
|
# 1.72.0, set DOCBOOK_XSL_172.
|
|
|
|
# 1.73.0-, set ASCIIDOC_NO_ROFF
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# If you had been using DOCBOOK_XSL_172 in an attempt to get rid
|
|
|
|
# of 'the ".ft C" problem' in your generated manpages, and you
|
|
|
|
# instead ended up with weird characters around callouts, try
|
|
|
|
# using ASCIIDOC_NO_ROFF instead (it works fine with ASCIIDOC8).
|
|
|
|
#
|
|
|
|
|
2007-11-14 12:38:46 +03:00
|
|
|
ifdef ASCIIDOC8
|
2009-07-25 16:06:50 +04:00
|
|
|
ASCIIDOC_EXTRA += -a asciidoc7compatible -a no-inline-literal
|
2007-11-14 12:38:46 +03:00
|
|
|
endif
|
|
|
|
ifdef DOCBOOK_XSL_172
|
2009-03-27 09:44:00 +03:00
|
|
|
ASCIIDOC_EXTRA += -a git-asciidoc-no-roff
|
2008-02-05 01:01:20 +03:00
|
|
|
MANPAGE_XSL = manpage-1.72.xsl
|
2009-03-27 09:44:00 +03:00
|
|
|
else
|
|
|
|
ifdef ASCIIDOC_NO_ROFF
|
|
|
|
# docbook-xsl after 1.72 needs the regular XSL, but will not
|
|
|
|
# pass-thru raw roff codes from asciidoc.conf, so turn them off.
|
|
|
|
ASCIIDOC_EXTRA += -a git-asciidoc-no-roff
|
|
|
|
endif
|
2007-11-14 12:38:46 +03:00
|
|
|
endif
|
2009-03-27 09:44:05 +03:00
|
|
|
ifdef MAN_BOLD_LITERAL
|
|
|
|
XMLTO_EXTRA += -m manpage-bold-literal.xsl
|
|
|
|
endif
|
2009-04-01 12:50:34 +04:00
|
|
|
ifdef DOCBOOK_SUPPRESS_SP
|
|
|
|
XMLTO_EXTRA += -m manpage-suppress-sp.xsl
|
|
|
|
endif
|
2007-11-14 12:38:46 +03:00
|
|
|
|
2009-12-03 11:06:52 +03:00
|
|
|
# Newer DocBook stylesheet emits warning cruft in the output when
|
2009-12-04 20:53:21 +03:00
|
|
|
# this is not set, and if set it shows an absolute link. Older
|
|
|
|
# stylesheets simply ignore this parameter.
|
2009-12-03 22:12:32 +03:00
|
|
|
#
|
2009-12-04 20:53:21 +03:00
|
|
|
# Distros may want to use MAN_BASE_URL=file:///path/to/git/docs/
|
|
|
|
# or similar.
|
|
|
|
ifndef MAN_BASE_URL
|
|
|
|
MAN_BASE_URL = file://$(htmldir)/
|
2009-12-03 22:12:32 +03:00
|
|
|
endif
|
2009-12-04 20:53:21 +03:00
|
|
|
XMLTO_EXTRA += -m manpage-base-url.xsl
|
2009-12-03 05:45:09 +03:00
|
|
|
|
2009-10-22 12:19:06 +04:00
|
|
|
# If your target system uses GNU groff, it may try to render
|
|
|
|
# apostrophes as a "pretty" apostrophe using unicode. This breaks
|
|
|
|
# cut&paste, so you should set GNU_ROFF to force them to be ASCII
|
|
|
|
# apostrophes. Unfortunately does not work with non-GNU roff.
|
|
|
|
ifdef GNU_ROFF
|
|
|
|
XMLTO_EXTRA += -m manpage-quote-apos.xsl
|
|
|
|
endif
|
|
|
|
|
2009-03-22 16:20:44 +03:00
|
|
|
SHELL_PATH ?= $(SHELL)
|
|
|
|
# Shell quote;
|
|
|
|
SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))
|
|
|
|
|
2005-05-22 21:44:15 +04:00
|
|
|
#
|
|
|
|
# Please note that there is a minor bug in asciidoc.
|
|
|
|
# The version after 6.0.3 _will_ include the patch found here:
|
|
|
|
# http://marc.theaimsgroup.com/?l=git&m=111558757202243&w=2
|
|
|
|
#
|
|
|
|
# Until that version is released you may have to apply the patch
|
|
|
|
# yourself - yes, all 6 characters of it!
|
|
|
|
#
|
|
|
|
|
2009-03-27 09:49:38 +03:00
|
|
|
QUIET_SUBDIR0 = +$(MAKE) -C # space to separate -C and subdir
|
|
|
|
QUIET_SUBDIR1 =
|
|
|
|
|
|
|
|
ifneq ($(findstring $(MAKEFLAGS),w),w)
|
|
|
|
PRINT_DIR = --no-print-directory
|
|
|
|
else # "make -w"
|
|
|
|
NO_SUBDIR = :
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(findstring $(MAKEFLAGS),s),s)
|
|
|
|
ifndef V
|
|
|
|
QUIET_ASCIIDOC = @echo ' ' ASCIIDOC $@;
|
|
|
|
QUIET_XMLTO = @echo ' ' XMLTO $@;
|
|
|
|
QUIET_DB2TEXI = @echo ' ' DB2TEXI $@;
|
|
|
|
QUIET_MAKEINFO = @echo ' ' MAKEINFO $@;
|
|
|
|
QUIET_DBLATEX = @echo ' ' DBLATEX $@;
|
|
|
|
QUIET_XSLTPROC = @echo ' ' XSLTPROC $@;
|
|
|
|
QUIET_GEN = @echo ' ' GEN $@;
|
|
|
|
QUIET_STDERR = 2> /dev/null
|
|
|
|
QUIET_SUBDIR0 = +@subdir=
|
|
|
|
QUIET_SUBDIR1 = ;$(NO_SUBDIR) echo ' ' SUBDIR $$subdir; \
|
|
|
|
$(MAKE) $(PRINT_DIR) -C $$subdir
|
|
|
|
export V
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2005-05-22 21:44:15 +04:00
|
|
|
all: html man
|
2005-05-11 01:32:39 +04:00
|
|
|
|
|
|
|
html: $(DOC_HTML)
|
|
|
|
|
2007-04-20 07:47:04 +04:00
|
|
|
$(DOC_HTML) $(DOC_MAN1) $(DOC_MAN5) $(DOC_MAN7): asciidoc.conf
|
2005-05-22 21:44:15 +04:00
|
|
|
|
2007-04-20 07:47:04 +04:00
|
|
|
man: man1 man5 man7
|
2005-05-22 21:44:15 +04:00
|
|
|
man1: $(DOC_MAN1)
|
2007-04-20 07:47:04 +04:00
|
|
|
man5: $(DOC_MAN5)
|
2005-05-22 21:44:15 +04:00
|
|
|
man7: $(DOC_MAN7)
|
2005-05-11 01:32:39 +04:00
|
|
|
|
2007-12-10 12:15:57 +03:00
|
|
|
info: git.info gitman.info
|
2007-08-06 14:22:57 +04:00
|
|
|
|
2008-12-11 01:44:50 +03:00
|
|
|
pdf: user-manual.pdf
|
|
|
|
|
2008-11-02 20:53:03 +03:00
|
|
|
install: install-man
|
|
|
|
|
|
|
|
install-man: man
|
2007-12-01 20:05:40 +03:00
|
|
|
$(INSTALL) -d -m 755 $(DESTDIR)$(man1dir)
|
|
|
|
$(INSTALL) -d -m 755 $(DESTDIR)$(man5dir)
|
|
|
|
$(INSTALL) -d -m 755 $(DESTDIR)$(man7dir)
|
|
|
|
$(INSTALL) -m 644 $(DOC_MAN1) $(DESTDIR)$(man1dir)
|
|
|
|
$(INSTALL) -m 644 $(DOC_MAN5) $(DESTDIR)$(man5dir)
|
|
|
|
$(INSTALL) -m 644 $(DOC_MAN7) $(DESTDIR)$(man7dir)
|
2005-07-15 05:21:57 +04:00
|
|
|
|
2007-08-06 14:22:57 +04:00
|
|
|
install-info: info
|
2007-12-01 20:05:40 +03:00
|
|
|
$(INSTALL) -d -m 755 $(DESTDIR)$(infodir)
|
2007-12-10 12:15:57 +03:00
|
|
|
$(INSTALL) -m 644 git.info gitman.info $(DESTDIR)$(infodir)
|
2007-08-06 14:22:57 +04:00
|
|
|
if test -r $(DESTDIR)$(infodir)/dir; then \
|
|
|
|
$(INSTALL_INFO) --info-dir=$(DESTDIR)$(infodir) git.info ;\
|
2007-12-10 12:15:57 +03:00
|
|
|
$(INSTALL_INFO) --info-dir=$(DESTDIR)$(infodir) gitman.info ;\
|
2007-08-06 14:22:57 +04:00
|
|
|
else \
|
|
|
|
echo "No directory found in $(DESTDIR)$(infodir)" >&2 ; \
|
|
|
|
fi
|
2005-11-04 11:06:20 +03:00
|
|
|
|
2008-12-11 01:44:50 +03:00
|
|
|
install-pdf: pdf
|
|
|
|
$(INSTALL) -d -m 755 $(DESTDIR)$(pdfdir)
|
|
|
|
$(INSTALL) -m 644 user-manual.pdf $(DESTDIR)$(pdfdir)
|
|
|
|
|
2007-12-02 08:07:55 +03:00
|
|
|
install-html: html
|
2009-03-22 16:20:44 +03:00
|
|
|
'$(SHELL_PATH_SQ)' ./install-webdoc.sh $(DESTDIR)$(htmldir)
|
2007-12-02 08:07:55 +03:00
|
|
|
|
2010-01-06 11:06:58 +03:00
|
|
|
../GIT-VERSION-FILE: FORCE
|
2009-03-27 09:49:38 +03:00
|
|
|
$(QUIET_SUBDIR0)../ $(QUIET_SUBDIR1) GIT-VERSION-FILE
|
2007-03-25 15:56:49 +04:00
|
|
|
|
|
|
|
-include ../GIT-VERSION-FILE
|
|
|
|
|
2005-11-07 08:30:56 +03:00
|
|
|
#
|
|
|
|
# Determine "include::" file references in asciidoc files.
|
|
|
|
#
|
2005-11-08 09:21:21 +03:00
|
|
|
doc.dep : $(wildcard *.txt) build-docdep.perl
|
2009-03-27 09:49:38 +03:00
|
|
|
$(QUIET_GEN)$(RM) $@+ $@ && \
|
|
|
|
$(PERL_PATH) ./build-docdep.perl >$@+ $(QUIET_STDERR) && \
|
2005-11-08 05:21:51 +03:00
|
|
|
mv $@+ $@
|
2005-11-07 08:30:56 +03:00
|
|
|
|
2005-11-08 05:21:51 +03:00
|
|
|
-include doc.dep
|
2005-11-04 11:06:20 +03:00
|
|
|
|
2007-01-19 03:02:13 +03:00
|
|
|
cmds_txt = cmds-ancillaryinterrogators.txt \
|
|
|
|
cmds-ancillarymanipulators.txt \
|
|
|
|
cmds-mainporcelain.txt \
|
|
|
|
cmds-plumbinginterrogators.txt \
|
|
|
|
cmds-plumbingmanipulators.txt \
|
2007-01-19 09:32:38 +03:00
|
|
|
cmds-synchingrepositories.txt \
|
|
|
|
cmds-synchelpers.txt \
|
|
|
|
cmds-purehelpers.txt \
|
|
|
|
cmds-foreignscminterface.txt
|
2007-01-19 03:02:13 +03:00
|
|
|
|
2007-04-06 09:17:20 +04:00
|
|
|
$(cmds_txt): cmd-list.made
|
|
|
|
|
2007-12-02 10:39:19 +03:00
|
|
|
cmd-list.made: cmd-list.perl ../command-list.txt $(MAN1_TXT)
|
2009-03-27 09:49:38 +03:00
|
|
|
$(QUIET_GEN)$(RM) $@ && \
|
|
|
|
$(PERL_PATH) ./cmd-list.perl ../command-list.txt $(QUIET_STDERR) && \
|
2007-04-06 09:17:20 +04:00
|
|
|
date >$@
|
2005-05-11 01:32:39 +04:00
|
|
|
|
|
|
|
clean:
|
2008-01-06 06:09:09 +03:00
|
|
|
$(RM) *.xml *.xml+ *.html *.html+ *.1 *.5 *.7
|
2009-03-27 09:49:39 +03:00
|
|
|
$(RM) *.texi *.texi+ *.texi++ git.info gitman.info
|
2007-11-25 10:48:04 +03:00
|
|
|
$(RM) howto-index.txt howto/*.html doc.dep
|
|
|
|
$(RM) technical/api-*.html technical/api-index.txt
|
2007-07-14 21:51:44 +04:00
|
|
|
$(RM) $(cmds_txt) *.made
|
2009-12-04 20:53:21 +03:00
|
|
|
$(RM) manpage-base-url.xsl
|
2005-05-11 01:32:39 +04:00
|
|
|
|
2007-11-25 10:48:04 +03:00
|
|
|
$(MAN_HTML): %.html : %.txt
|
2009-03-27 09:49:38 +03:00
|
|
|
$(QUIET_ASCIIDOC)$(RM) $@+ $@ && \
|
2007-03-25 15:56:49 +04:00
|
|
|
$(ASCIIDOC) -b xhtml11 -d manpage -f asciidoc.conf \
|
2009-03-27 09:49:38 +03:00
|
|
|
$(ASCIIDOC_EXTRA) -agit_version=$(GIT_VERSION) -o $@+ $< && \
|
2007-03-25 15:56:49 +04:00
|
|
|
mv $@+ $@
|
2005-05-11 01:32:39 +04:00
|
|
|
|
2009-12-04 20:53:21 +03:00
|
|
|
manpage-base-url.xsl: manpage-base-url.xsl.in
|
|
|
|
sed "s|@@MAN_BASE_URL@@|$(MAN_BASE_URL)|" $< > $@
|
|
|
|
|
|
|
|
%.1 %.5 %.7 : %.xml manpage-base-url.xsl
|
2009-03-27 09:49:38 +03:00
|
|
|
$(QUIET_XMLTO)$(RM) $@ && \
|
2009-03-27 09:44:05 +03:00
|
|
|
xmlto -m $(MANPAGE_XSL) $(XMLTO_EXTRA) man $<
|
2005-05-11 01:32:39 +04:00
|
|
|
|
|
|
|
%.xml : %.txt
|
2009-03-27 09:49:38 +03:00
|
|
|
$(QUIET_ASCIIDOC)$(RM) $@+ $@ && \
|
2007-03-25 15:56:49 +04:00
|
|
|
$(ASCIIDOC) -b docbook -d manpage -f asciidoc.conf \
|
2009-03-27 09:49:38 +03:00
|
|
|
$(ASCIIDOC_EXTRA) -agit_version=$(GIT_VERSION) -o $@+ $< && \
|
2007-03-25 15:56:49 +04:00
|
|
|
mv $@+ $@
|
2005-08-15 04:24:36 +04:00
|
|
|
|
2007-01-08 03:23:49 +03:00
|
|
|
user-manual.xml: user-manual.txt user-manual.conf
|
2010-04-22 05:18:21 +04:00
|
|
|
$(QUIET_ASCIIDOC)$(RM) $@+ $@ && \
|
|
|
|
$(ASCIIDOC) $(ASCIIDOC_EXTRA) -b docbook -d book -o $@+ $< && \
|
|
|
|
mv $@+ $@
|
2007-01-08 03:23:49 +03:00
|
|
|
|
2007-11-25 10:48:04 +03:00
|
|
|
technical/api-index.txt: technical/api-index-skel.txt \
|
|
|
|
technical/api-index.sh $(patsubst %,%.txt,$(API_DOCS))
|
2009-03-22 16:20:44 +03:00
|
|
|
$(QUIET_GEN)cd technical && '$(SHELL_PATH_SQ)' ./api-index.sh
|
2007-11-25 10:48:04 +03:00
|
|
|
|
|
|
|
$(patsubst %,%.html,$(API_DOCS) technical/api-index): %.html : %.txt
|
2009-03-27 09:49:38 +03:00
|
|
|
$(QUIET_ASCIIDOC)$(ASCIIDOC) -b xhtml11 -f asciidoc.conf \
|
2007-11-25 10:48:04 +03:00
|
|
|
$(ASCIIDOC_EXTRA) -agit_version=$(GIT_VERSION) $*.txt
|
|
|
|
|
2007-07-24 11:46:35 +04:00
|
|
|
XSLT = docbook.xsl
|
2007-03-16 18:45:29 +03:00
|
|
|
XSLTOPTS = --xinclude --stringparam html.stylesheet docbook-xsl.css
|
2007-03-03 21:33:48 +03:00
|
|
|
|
2010-08-21 10:21:22 +04:00
|
|
|
user-manual.html: user-manual.xml $(XSLT)
|
2010-04-22 05:18:21 +04:00
|
|
|
$(QUIET_XSLTPROC)$(RM) $@+ $@ && \
|
|
|
|
xsltproc $(XSLTOPTS) -o $@+ $(XSLT) $< && \
|
|
|
|
mv $@+ $@
|
2007-01-08 03:23:49 +03:00
|
|
|
|
2007-12-13 00:31:02 +03:00
|
|
|
git.info: user-manual.texi
|
2009-03-27 09:49:38 +03:00
|
|
|
$(QUIET_MAKEINFO)$(MAKEINFO) --no-split -o $@ user-manual.texi
|
2007-12-10 12:15:57 +03:00
|
|
|
|
2007-12-13 00:31:02 +03:00
|
|
|
user-manual.texi: user-manual.xml
|
2009-03-27 09:49:38 +03:00
|
|
|
$(QUIET_DB2TEXI)$(RM) $@+ $@ && \
|
2009-03-27 09:49:39 +03:00
|
|
|
$(DOCBOOK2X_TEXI) user-manual.xml --encoding=UTF-8 --to-stdout >$@++ && \
|
|
|
|
$(PERL_PATH) fix-texi.perl <$@++ >$@+ && \
|
|
|
|
rm $@++ && \
|
2007-12-10 12:15:57 +03:00
|
|
|
mv $@+ $@
|
|
|
|
|
2008-12-11 01:44:50 +03:00
|
|
|
user-manual.pdf: user-manual.xml
|
2009-03-27 09:49:38 +03:00
|
|
|
$(QUIET_DBLATEX)$(RM) $@+ $@ && \
|
|
|
|
$(DBLATEX) -o $@+ -p /etc/asciidoc/dblatex/asciidoc-dblatex.xsl -s /etc/asciidoc/dblatex/asciidoc-dblatex.sty $< && \
|
2008-12-11 01:44:50 +03:00
|
|
|
mv $@+ $@
|
|
|
|
|
2007-12-10 12:15:57 +03:00
|
|
|
gitman.texi: $(MAN_XML) cat-texi.perl
|
2009-03-27 09:49:38 +03:00
|
|
|
$(QUIET_DB2TEXI)$(RM) $@+ $@ && \
|
2008-12-29 11:03:08 +03:00
|
|
|
($(foreach xml,$(MAN_XML),$(DOCBOOK2X_TEXI) --encoding=UTF-8 \
|
2009-03-27 09:49:39 +03:00
|
|
|
--to-stdout $(xml) &&) true) > $@++ && \
|
|
|
|
$(PERL_PATH) cat-texi.perl $@ <$@++ >$@+ && \
|
|
|
|
rm $@++ && \
|
2007-12-10 12:15:57 +03:00
|
|
|
mv $@+ $@
|
|
|
|
|
|
|
|
gitman.info: gitman.texi
|
2009-03-27 09:49:38 +03:00
|
|
|
$(QUIET_MAKEINFO)$(MAKEINFO) --no-split --no-validate $*.texi
|
2007-12-10 12:15:57 +03:00
|
|
|
|
|
|
|
$(patsubst %.txt,%.texi,$(MAN_TXT)): %.texi : %.xml
|
2009-03-27 09:49:38 +03:00
|
|
|
$(QUIET_DB2TEXI)$(RM) $@+ $@ && \
|
|
|
|
$(DOCBOOK2X_TEXI) --to-stdout $*.xml >$@+ && \
|
2007-12-10 12:15:57 +03:00
|
|
|
mv $@+ $@
|
2007-08-06 14:22:57 +04:00
|
|
|
|
2005-08-25 11:28:18 +04:00
|
|
|
howto-index.txt: howto-index.sh $(wildcard howto/*.txt)
|
2009-03-27 09:49:38 +03:00
|
|
|
$(QUIET_GEN)$(RM) $@+ $@ && \
|
2009-03-22 16:20:44 +03:00
|
|
|
'$(SHELL_PATH_SQ)' ./howto-index.sh $(wildcard howto/*.txt) >$@+ && \
|
2005-08-25 11:28:18 +04:00
|
|
|
mv $@+ $@
|
|
|
|
|
2005-08-31 00:51:01 +04:00
|
|
|
$(patsubst %,%.html,$(ARTICLES)) : %.html : %.txt
|
2009-04-28 16:28:32 +04:00
|
|
|
$(QUIET_ASCIIDOC)$(ASCIIDOC) $(ASCIIDOC_EXTRA) -b xhtml11 $*.txt
|
2005-08-25 11:28:18 +04:00
|
|
|
|
|
|
|
WEBDOC_DEST = /pub/software/scm/git/docs
|
|
|
|
|
2005-08-30 09:38:12 +04:00
|
|
|
$(patsubst %.txt,%.html,$(wildcard howto/*.txt)): %.html : %.txt
|
2009-03-27 09:49:38 +03:00
|
|
|
$(QUIET_ASCIIDOC)$(RM) $@+ $@ && \
|
2009-04-28 16:28:32 +04:00
|
|
|
sed -e '1,/^$$/d' $< | $(ASCIIDOC) $(ASCIIDOC_EXTRA) -b xhtml11 - >$@+ && \
|
2005-08-30 09:38:12 +04:00
|
|
|
mv $@+ $@
|
|
|
|
|
2005-08-25 11:28:18 +04:00
|
|
|
install-webdoc : html
|
2009-03-22 16:20:44 +03:00
|
|
|
'$(SHELL_PATH_SQ)' ./install-webdoc.sh $(WEBDOC_DEST)
|
2006-12-23 19:26:09 +03:00
|
|
|
|
2008-11-02 20:53:03 +03:00
|
|
|
quick-install: quick-install-man
|
|
|
|
|
|
|
|
quick-install-man:
|
2009-03-22 16:20:44 +03:00
|
|
|
'$(SHELL_PATH_SQ)' ./install-doc-quick.sh $(DOC_REF) $(DESTDIR)$(mandir)
|
2007-03-25 15:56:49 +04:00
|
|
|
|
2008-09-10 00:44:17 +04:00
|
|
|
quick-install-html:
|
2009-03-22 16:20:44 +03:00
|
|
|
'$(SHELL_PATH_SQ)' ./install-doc-quick.sh $(HTML_REF) $(DESTDIR)$(htmldir)
|
2008-09-10 00:44:17 +04:00
|
|
|
|
2010-01-06 11:06:58 +03:00
|
|
|
.PHONY: FORCE
|