~ubuntu-branches/ubuntu/intrepid/git-core/intrepid-security

« back to all changes in this revision

Viewing changes to Documentation/Makefile

  • Committer: Package Import Robot
  • Author(s): Gerrit Pape
  • Date: 2007-10-04 08:27:01 UTC
  • mfrom: (1.1.23)
  • Revision ID: package-import@ubuntu.com-20071004082701-rsd058ontoqz4i30
Tags: 1:1.5.3.4-1
new upstream point release (closes: #445188).

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
        $(filter-out $(addsuffix .txt, $(ARTICLES) $(SP_ARTICLES)), \
3
3
                $(wildcard git-*.txt)) \
4
4
        gitk.txt
5
 
MAN5_TXT=gitattributes.txt gitignore.txt
 
5
MAN5_TXT=gitattributes.txt gitignore.txt gitmodules.txt
6
6
MAN7_TXT=git.txt
7
7
 
8
8
DOC_HTML=$(patsubst %.txt,%.html,$(MAN1_TXT) $(MAN5_TXT) $(MAN7_TXT))
29
29
 
30
30
prefix?=$(HOME)
31
31
bindir?=$(prefix)/bin
32
 
mandir?=$(prefix)/man
 
32
mandir?=$(prefix)/share/man
33
33
man1dir=$(mandir)/man1
34
34
man5dir=$(mandir)/man5
35
35
man7dir=$(mandir)/man7
41
41
ASCIIDOC_EXTRA += -a asciidoc7compatible
42
42
endif
43
43
INSTALL?=install
 
44
RM ?= rm -f
44
45
DOC_REF = origin/man
45
46
 
 
47
infodir?=$(prefix)/share/info
 
48
MAKEINFO=makeinfo
 
49
INSTALL_INFO=install-info
 
50
DOCBOOK2X_TEXI=docbook2x-texi
 
51
 
46
52
-include ../config.mak.autogen
47
53
-include ../config.mak
48
54
 
66
72
man5: $(DOC_MAN5)
67
73
man7: $(DOC_MAN7)
68
74
 
 
75
info: git.info
 
76
 
69
77
install: man
70
78
        $(INSTALL) -d -m755 $(DESTDIR)$(man1dir)
71
79
        $(INSTALL) -d -m755 $(DESTDIR)$(man5dir)
74
82
        $(INSTALL) -m644 $(DOC_MAN5) $(DESTDIR)$(man5dir)
75
83
        $(INSTALL) -m644 $(DOC_MAN7) $(DESTDIR)$(man7dir)
76
84
 
 
85
install-info: info
 
86
        $(INSTALL) -d -m755 $(DESTDIR)$(infodir)
 
87
        $(INSTALL) -m644 git.info $(DESTDIR)$(infodir)
 
88
        if test -r $(DESTDIR)$(infodir)/dir; then \
 
89
          $(INSTALL_INFO) --info-dir=$(DESTDIR)$(infodir) git.info ;\
 
90
        else \
 
91
          echo "No directory found in $(DESTDIR)$(infodir)" >&2 ; \
 
92
        fi
77
93
 
78
94
../GIT-VERSION-FILE: .FORCE-GIT-VERSION-FILE
79
95
        $(MAKE) -C ../ GIT-VERSION-FILE
84
100
# Determine "include::" file references in asciidoc files.
85
101
#
86
102
doc.dep : $(wildcard *.txt) build-docdep.perl
87
 
        rm -f $@+ $@
 
103
        $(RM) $@+ $@
88
104
        perl ./build-docdep.perl >$@+
89
105
        mv $@+ $@
90
106
 
103
119
$(cmds_txt): cmd-list.made
104
120
 
105
121
cmd-list.made: cmd-list.perl $(MAN1_TXT)
 
122
        $(RM) $@
106
123
        perl ./cmd-list.perl
107
124
        date >$@
108
125
 
109
 
git.7 git.html: git.txt core-intro.txt
 
126
git.7 git.html: git.txt
110
127
 
111
128
clean:
112
 
        rm -f *.xml *.xml+ *.html *.html+ *.1 *.5 *.7 howto-index.txt howto/*.html doc.dep
113
 
        rm -f $(cmds_txt) *.made
 
129
        $(RM) *.xml *.xml+ *.html *.html+ *.1 *.5 *.7 *.texi *.texi+ howto-index.txt howto/*.html doc.dep
 
130
        $(RM) $(cmds_txt) *.made
114
131
 
115
132
%.html : %.txt
116
 
        rm -f $@+ $@
 
133
        $(RM) $@+ $@
117
134
        $(ASCIIDOC) -b xhtml11 -d manpage -f asciidoc.conf \
118
135
                $(ASCIIDOC_EXTRA) -agit_version=$(GIT_VERSION) -o $@+ $<
119
136
        mv $@+ $@
120
137
 
121
138
%.1 %.5 %.7 : %.xml
 
139
        $(RM) $@
122
140
        xmlto -m callouts.xsl man $<
123
141
 
124
142
%.xml : %.txt
125
 
        rm -f $@+ $@
 
143
        $(RM) $@+ $@
126
144
        $(ASCIIDOC) -b docbook -d manpage -f asciidoc.conf \
127
145
                $(ASCIIDOC_EXTRA) -agit_version=$(GIT_VERSION) -o $@+ $<
128
146
        mv $@+ $@
130
148
user-manual.xml: user-manual.txt user-manual.conf
131
149
        $(ASCIIDOC) -b docbook -d book $<
132
150
 
133
 
XSLT = http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl
 
151
XSLT = docbook.xsl
134
152
XSLTOPTS = --xinclude --stringparam html.stylesheet docbook-xsl.css
135
153
 
136
154
user-manual.html: user-manual.xml
137
155
        xsltproc $(XSLTOPTS) -o $@ $(XSLT) $<
138
156
 
 
157
git.info: user-manual.xml
 
158
        $(RM) $@ $*.texi $*.texi+
 
159
        $(DOCBOOK2X_TEXI) user-manual.xml --to-stdout >$*.texi+
 
160
        perl fix-texi.perl <$*.texi+ >$*.texi
 
161
        $(MAKEINFO) --no-split $*.texi
 
162
        $(RM) $*.texi $*.texi+
 
163
 
139
164
howto-index.txt: howto-index.sh $(wildcard howto/*.txt)
140
 
        rm -f $@+ $@
 
165
        $(RM) $@+ $@
141
166
        sh ./howto-index.sh $(wildcard howto/*.txt) >$@+
142
167
        mv $@+ $@
143
168
 
147
172
WEBDOC_DEST = /pub/software/scm/git/docs
148
173
 
149
174
$(patsubst %.txt,%.html,$(wildcard howto/*.txt)): %.html : %.txt
150
 
        rm -f $@+ $@
 
175
        $(RM) $@+ $@
151
176
        sed -e '1,/^$$/d' $< | $(ASCIIDOC) -b xhtml11 - >$@+
152
177
        mv $@+ $@
153
178