summaryrefslogtreecommitdiff
path: root/tools/Makefile.am
blob: 99cd2a025382185d6db9e00a10db182c09fc03aa (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
44
45
EXTRA_DIST = \
    c-constants-gen.py \
    check-coding-style.mk \
    check-c-style.sh \
    check-misc.sh \
    check-whitespace.sh \
    doc-generator.xsl \
    glib-ginterface-gen.py \
    glib-gtypes-generator.py \
    glib-interfaces-gen.py \
    glib-signals-marshal-gen.py \
    identity.xsl \
    libglibcodegen.py \
    libtpcodegen.py \
    telepathy.am \
    xep.xsl

CLEANFILES = *.pyc *.pyo

all: $(EXTRA_DIST)

libglibcodegen.py: libtpcodegen.py
	test -e $@
	touch $@

glib-ginterface-gen.py glib-gtypes-generator.py glib-interfaces-gen.py \
glib-signals-marshal-gen.py c-constants-gen.py: %: libglibcodegen.py
	test -e $@
	touch $@

maintainer-update-from-xmpp.org:
	set -e; \
	uri=svn://svn.xmpp.org:7938/xmpp/trunk/extensions/xep.xsl; \
	svn info $$uri; \
	svn cat $$uri > xep.xsl.tmp
	mv xep.xsl.tmp xep.xsl

TELEPATHY_GLIB_SRCDIR = $(top_srcdir)/../telepathy-glib
maintainer-update-from-telepathy-glib:
	set -e && cd $(srcdir) && \
	for x in $(EXTRA_DIST); do \
		if test -f $(TELEPATHY_GLIB_SRCDIR)/tools/$$x; then \
			cp $(TELEPATHY_GLIB_SRCDIR)/tools/$$x $$x; \
		fi; \
	done