build: add built interface files to DISTCLEAN
[anjuta.git] / libanjuta / interfaces / Makefile.am
blobf8bf970c25fe3b5ac5833f6d4ede383dcea728a1
1 include Makefile.am.iface
3 AM_CPPFLAGS = \
4         -I$(top_srcdir) \
5         -I . \
6         $(WARN_CFLAGS) \
7         $(DEPRECATED_FLAGS) \
8         $(ANJUTA_CFLAGS) \
9         $(XML_CFLAGS) \
10         $(GDL_CFLAGS) \
11         -DDATADIR="\"$(datadir)\"" \
12         -DPACKAGE_PIXMAPS_DIR="\"$(datadir)/pixmaps/$(PACKAGE)\"" \
13         -DPACKAGE_DATA_DIR="\"$(datadir)/$(PACKAGE)\"" \
14         -DPACKAGE_HELP_DIR="\"$(datadir)/gnome/help/$(PACKAGE)\"" \
15         -DPACKAGE_DOC_DIR="\"$(docdir)\"" \
16         -DG_LOG_DOMAIN=\"libanjuta-interfaces\"
18 # interfaces
19 noinst_LTLIBRARIES = libanjuta-interfaces.la
20 libanjuta_interfaces_la_LIBADD = $(ANJUTA_LIBS) $(XML_LIBS)
22 libanjuta_interfaces_includedir = $(includedir)/libanjuta-3.0/libanjuta/interfaces
23 libanjuta_interfaces_include_HEADERS =  $(libanjuta_interfaces_include)
25 BUILT_SOURCES = iface-built.stamp
27 libanjuta-interfaces.h: iface-built.stamp
29 iface-built.stamp: libanjuta.idl anjuta-idl-compiler.pl
30         savedir=`pwd` && \
31         cd $(srcdir) && perl anjuta-idl-compiler.pl libanjuta && \
32         echo 'GInterface' > hierarchy.txt && grep -e '^[[:space:]|\t]*interface' \
33         libanjuta.idl  | sed -e 's/\binterface\b\s*/\t/' | sed -e 's/\t/    /g' \
34         >> hierarchy.txt && \
35         touch iface-built.stamp && \
36         echo "changing to $$savedir" && \
37         cd $$savedir && \
38         $(MAKE)
40 files_idl = libanjuta.idl
41 idldir = $(libanjuta_interfaces_includedir)
42 idl_HEADERS = $(files_idl)
44 anjuta-marshal.h: interfaces/anjuta-marshal.list
45         $(AM_V_GEN)@GLIB_GENMARSHAL@ \
46                 --prefix=anjuta_cclosure_marshal $(srcdir)/anjuta-marshal.list --header > xgen-gmc \
47         && cp xgen-gmc $(@F) \
48         && rm -f xgen-gmc
50 anjuta-marshal.c: interfaces/anjuta-marshal.h interfaces/anjuta-marshal.list
51         $(AM_V_GEN)echo "#include \"ianjuta-marshal.h\"" > xgenc-gmc \
52         && @GLIB_GENMARSHAL@ \
53                 --prefix=anjuta_cclosure_marshal $(srcdir)anjuta-marshal.list --body >> xgenc-gmc \
54         && cp xgenc-gmc $(@F) \
55         && rm -f xgenc-gmc
57 EXTRA_DIST = \
58         iface-built.stamp \
59         $(libanjuta_interfaces_include) \
60         $(files_idl) \
61         Makefile.am.iface \
62         anjuta-idl-compiler.pl
65 CLEANFILES = libanjuta-interfaces.h iface-built.stamp
67 DISTCLEANFILES = *.c \
68         *.h \
69         Makefile.am.iface \
70         Makefile.am.gir \
71         libanjuta-iface-marshallers.list
73 -include $(top_srcdir)/git.mk