tests: Do not include built source in the distribution
[gnome.gobject-introspection] / tests / invoke / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 check_PROGRAMS = invoke genericmarshaller
4 testlib_LTLIBRARIES = testfns.la
5 testlibdir = /tmp
6 install-testlibLTLIBRARIES: # prevent it from being installed
7
8 testfns_la_SOURCES =                            \
9         testfns.c
10 nodist_testfns_la_SOURCES =                     \
11         testfns-metadata.c
12 testfns_la_CFLAGS = $(GIREPO_CFLAGS) -I$(top_srcdir)/girepository
13 testfns_la_LDFLAGS = -module -avoid-version
14 testfns_la_LIBADD = $(top_builddir)/girepository/libgirepository-1.0.la $(GIREPO_LIBS)
15
16 if OS_WIN32
17 testfns_la_LDFLAGS += -no-undefined
18 endif
19
20 BUILT_SOURCES = testfns-metadata.c
21 CLEANFILES = testfns-metadata.c 
22
23 testfns-metadata.c: testfns-1.0.gir $(top_builddir)/tools/g-ir-compiler Makefile
24         $(AM_V_GEN) $(CHECK_DEBUG) $(top_builddir)/tools/g-ir-compiler $(srcdir)/testfns-1.0.gir --code -o testfns-metadata.c
25
26 invoke_SOURCES = invoke.c
27 invoke_CFLAGS = $(GIREPO_CFLAGS)  -I$(top_srcdir)/girepository
28 invoke_LDADD = $(top_builddir)/girepository/libgirepository-1.0.la $(GIREPO_LIBS)
29
30 genericmarshaller_SOURCES = genericmarshaller.c
31 genericmarshaller_CFLAGS = $(GIREPO_CFLAGS)  -I$(top_srcdir)/girepository
32 genericmarshaller_LDADD = $(top_builddir)/girepository/libgirepository-1.0.la $(GIREPO_LIBS)
33
34 TESTS = invoke genericmarshaller invoke-namespace-find.sh
35
36 EXTRA_DIST = invoke-namespace-find.sh testfns-1.0.gir
37