summaryrefslogtreecommitdiff
path: root/docs/Makefile.am
blob: 485c2d8b02a163b05a334048fc251675b2f96eae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
tools_dir = $(top_srcdir)/tools

# htmldir is not defined by autoconf < 2.59c
htmldir = $(if $(filter-out @%@,@htmldir@),@htmldir@,$(datadir)/doc/$(PACKAGE))

man_MANS = telepathy-gabble.8
html_DATA = \
    olpc.html \
    muc-bytestream.html \
    si-multiple.html \
    tubes.html

EXTRA_DIST = \
    $(man_MANS:.8=.8.in) \
    $(html_DATA:.html=.xml) \
    tube-caps.txt \
    xep.dtd \
    xep.ent \
    xep.xsd \
    xep.xsl

CLEANFILES = \
    $(man_MANS) \
    $(html_DATA)

%.8: %.8.in Makefile
	$(AM_V_GEN)sed -e 's,[@]libexecdir[@],@libexecdir@,' < $< > $@

$(html_DATA): %.html: %.xml xep.xsl xep.dtd xep.ent
	$(AM_V_GEN)$(XSLTPROC) $(srcdir)/xep.xsl $< > $@

proto-xep-upload: $(html_DATA)
	rsync -P $(html_DATA) people.collabora.co.uk:public_html/
.PHONY: proto-xep-upload

maintainer-update-from-xmpp.org:
	set -e; \
	for x in xep.dtd xep.ent xep.xsd xep.xsl; do \
		uri=svn://svn.xmpp.org:7938/xmpp/trunk/extensions/$$x; \
		svn info $$uri; \
		svn cat $$uri > $$x.tmp; \
		mv $$x.tmp $$x; \
	done