summaryrefslogtreecommitdiff
path: root/tests/Makefile.am
blob: a86a750f12b799cfa2d03278c2be405c3ed53c93 (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
SUBDIRS = . scanner repository offsets

BUILT_SOURCES=
CLEANFILES=

INCLUDES = $(GOBJECT_CFLAGS)
LIBADD = $(GOBJECT_LIBS)

noinst_LTLIBRARIES = libeverything-1.0.la

libeverything_1_0_la_SOURCES = everything.c

BUILT_SOURCES += everything.c everything.h

CLEANFILES += $(BUILT_SOURCES) everything-stamp.h
everything-stamp.h: Makefile
	$(AM_V_GEN) $(top_builddir)/tools/g-ir-scanner --test-codegen=Everything,everything.h,everything.c
	touch $@

everything.c: everything-stamp.h
	@true

everything.h: everything-stamp.h
	@true

Everything-1.0.gir: libeverything-1.0.la
	$(AM_V_GEN) $(top_builddir)/tools/g-ir-scanner --warn-all --reparse-validate --namespace=Everything --version=1.0 --library=libeverything-1.0.la everything.h everything.c --output=$@

Everything-1.0.typelib: Everything-1.0.gir
	$(AM_V_GEN) $(top_builddir)/tools/g-ir-compiler $< -o $@

install-data-local:
	for src in everything.c everything.h; do \
	  install -m 644 -D $$src $(datadir)/gobject-introspection-1.0/tests/$$src; \
	done