2 $(filter-out $(addsuffix .txt
, $(ARTICLES
) $(SP_ARTICLES
)), \
3 $(wildcard git-
*.txt
)) \
7 DOC_HTML
=$(patsubst %.txt
,%.html
,$(MAN1_TXT
) $(MAN7_TXT
))
10 ARTICLES
+= tutorial-2
11 ARTICLES
+= core-tutorial
12 ARTICLES
+= cvs-migration
14 ARTICLES
+= howto-index
15 ARTICLES
+= repository-layout
19 # with their own formatting rules.
20 SP_ARTICLES
= glossary howto
/revert-branch-rebase
22 DOC_HTML
+= $(patsubst %,%.html
,$(ARTICLES
) $(SP_ARTICLES
))
24 DOC_MAN1
=$(patsubst %.txt
,%.1,$(MAN1_TXT
))
25 DOC_MAN7
=$(patsubst %.txt
,%.7,$(MAN7_TXT
))
37 # Please note that there is a minor bug in asciidoc.
38 # The version after 6.0.3 _will_ include the patch found here:
39 # http://marc.theaimsgroup.com/?l=git&m=111558757202243&w=2
41 # Until that version is released you may have to apply the patch
42 # yourself - yes, all 6 characters of it!
55 $(INSTALL
) -d
-m755
$(DESTDIR
)$(man1
) $(DESTDIR
)$(man7
)
56 $(INSTALL
) $(DOC_MAN1
) $(DESTDIR
)$(man1
)
57 $(INSTALL
) $(DOC_MAN7
) $(DESTDIR
)$(man7
)
61 # Determine "include::" file references in asciidoc files.
63 doc.dep
: $(wildcard *.txt
) build-docdep.perl
65 perl .
/build-docdep.perl
>$@
+
77 rm -f
*.xml
*.html
*.1 *.7 howto-index.txt howto
/*.html doc.dep README
80 asciidoc
-b xhtml11
-d manpage
-f asciidoc.conf
$<
83 xmlto
-m callouts.xsl man
$<
86 asciidoc
-b docbook
-d manpage
-f asciidoc.conf
$<
88 git.html
: git.txt README
90 glossary.html
: glossary.txt sort_glossary.pl
92 perl sort_glossary.pl | \
93 asciidoc
-b xhtml11
- > glossary.html
95 howto-index.txt
: howto-index.sh
$(wildcard howto
/*.txt
)
97 sh .
/howto-index.sh
$(wildcard howto
/*.txt
) >$@
+
100 $(patsubst %,%.html
,$(ARTICLES
)) : %.html
: %.txt
101 asciidoc
-b xhtml11
$*.txt
103 WEBDOC_DEST
= /pub
/software
/scm
/git
/docs
105 $(patsubst %.txt
,%.html
,$(wildcard howto
/*.txt
)): %.html
: %.txt
107 sed
-e
'1,/^$$/d' $? | asciidoc
-b xhtml11
- >$@
+
110 install-webdoc
: html
111 sh .
/install-webdoc.sh
$(WEBDOC_DEST
)