1 MAN1_TXT
=$(wildcard git-
*.txt
) gitk.txt
4 DOC_HTML
=$(patsubst %.txt
,%.html
,$(MAN1_TXT
) $(MAN7_TXT
))
7 ARTICLES
+= cvs-migration
9 ARTICLES
+= howto-index
10 ARTICLES
+= repository-layout
12 # with their own formatting rules.
13 SP_ARTICLES
= glossary howto
/revert-branch-rebase
15 DOC_HTML
+= $(patsubst %,%.html
,$(ARTICLES
) $(SP_ARTICLES
))
17 DOC_MAN1
=$(patsubst %.txt
,%.1,$(MAN1_TXT
))
18 DOC_MAN7
=$(patsubst %.txt
,%.7,$(MAN7_TXT
))
30 # Please note that there is a minor bug in asciidoc.
31 # The version after 6.0.3 _will_ include the patch found here:
32 # http://marc.theaimsgroup.com/?l=git&m=111558757202243&w=2
34 # Until that version is released you may have to apply the patch
35 # yourself - yes, all 6 characters of it!
48 $(INSTALL
) -d
-m755
$(DESTDIR
)/$(man1
) $(DESTDIR
)/$(man7
)
49 $(INSTALL
) $(DOC_MAN1
) $(DESTDIR
)/$(man1
)
50 $(INSTALL
) $(DOC_MAN7
) $(DESTDIR
)/$(man7
)
54 # Determine "include::" file references in asciidoc files.
56 doc.dep
: $(wildcard *.txt
) build-docdep.perl
58 perl .
/build-docdep.perl
>$@
+
67 rm -f
*.xml
*.html
*.1 *.7 howto-index.txt howto
/*.html doc.dep
70 asciidoc
-b xhtml11
-d manpage
-f asciidoc.conf
$<
76 asciidoc
-b docbook
-d manpage
-f asciidoc.conf
$<
78 git.html
: git.txt ..
/README
80 glossary.html
: glossary.txt sort_glossary.pl
82 perl sort_glossary.pl | \
83 asciidoc
-b xhtml11
- > glossary.html
85 howto-index.txt
: howto-index.sh
$(wildcard howto
/*.txt
)
87 sh .
/howto-index.sh
$(wildcard howto
/*.txt
) >$@
+
90 $(patsubst %,%.html
,$(ARTICLES
)) : %.html
: %.txt
91 asciidoc
-b xhtml11
$*.txt
93 WEBDOC_DEST
= /pub
/software
/scm
/git
/docs
95 $(patsubst %.txt
,%.html
,$(wildcard howto
/*.txt
)): %.html
: %.txt
97 sed
-e
'1,/^$$/d' $? | asciidoc
-b xhtml11
- >$@
+
100 install-webdoc
: html
101 sh .
/install-webdoc.sh
$(WEBDOC_DEST
)