Run from the source directory without installing
[empathy.git] / tools / Makefile.am
1 abs_top_builddir = @abs_top_builddir@
2
3 noinst_SCRIPTS = telepathy-glib-env empathy-env
4
5 telepathy-glib-env: telepathy-glib-env.in Makefile
6         sed -e 's![@]abs_top_builddir[@]!$(abs_top_builddir)!' $< > $@
7         chmod +x $@
8
9 empathy-env: empathy-env.in Makefile
10         sed -e 's![@]abs_top_builddir[@]!$(abs_top_builddir)!' $< > $@
11         chmod +x $@
12
13 EXTRA_DIST = \
14     c-constants-gen.py \
15     check-coding-style.mk \
16     check-c-style.sh \
17     check-misc.sh \
18     check-whitespace.sh \
19     doc-generator.xsl \
20     flymake.mk \
21     git-which-branch.sh \
22     glib-client-gen.py \
23     glib-client-marshaller-gen.py \
24     glib-errors-check-gen.py \
25     glib-errors-str-gen.py \
26     glib-ginterface-gen.py \
27     glib-gtypes-generator.py \
28     glib-interfaces-gen.py \
29     glib-signals-marshal-gen.py \
30     gobject-foo.py \
31     lcov.am \
32     libtpcodegen.py \
33     libglibcodegen.py \
34     make-release-mail.py \
35     make-version-script.py \
36     manager-file.py \
37     shave.mk \
38     telepathy.am \
39     telepathy-glib.supp \
40     telepathy-glib-env.in \
41     empathy-env.in \
42     test-wrapper.sh \
43     with-session-bus.sh \
44     xincludator.py
45
46 CLEANFILES = libtpcodegen.pyc libtpcodegen.pyo libglibcodegen.pyc libglibcodegen.pyo $(noinst_SCRIPTS)
47
48 all: $(EXTRA_DIST)
49
50 libglibcodegen.py: libtpcodegen.py
51         $(AM_V_GEN)touch $@
52 c-constants-gen.py: libglibcodegen.py
53         $(AM_V_GEN)touch $@
54 glib-client-marshaller-gen.py: libglibcodegen.py
55         $(AM_V_GEN)touch $@
56 glib-errors-enum-body-gen.py: libglibcodegen.py
57         $(AM_V_GEN)touch $@
58 glib-errors-enum-header-gen.py: libglibcodegen.py
59         $(AM_V_GEN)touch $@
60 glib-ginterface-gen.py: libglibcodegen.py
61         $(AM_V_GEN)touch $@
62 glib-gtypes-generator.py: libglibcodegen.py
63         $(AM_V_GEN)touch $@
64 glib-interfaces-gen.py: libglibcodegen.py
65         $(AM_V_GEN)touch $@
66 glib-signals-marshal-gen.py: libglibcodegen.py
67         $(AM_V_GEN)touch $@
68
69 TELEPATHY_SPEC_SRCDIR = $(top_srcdir)/../telepathy-spec
70 maintainer-update-from-telepathy-spec:
71         set -e && cd $(srcdir) && \
72         for x in $(EXTRA_DIST); do \
73                 if test -f $(TELEPATHY_SPEC_SRCDIR)/tools/$$x; then \
74                         cp $(TELEPATHY_SPEC_SRCDIR)/tools/$$x $$x; \
75                 fi; \
76         done