blob: 127b2585120a3e237f51389368a9d56700616472 (
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
46
47
48
49
50
51
|
include $(top_srcdir)/common.mk
include $(top_srcdir)/Makefile.introspection
INTROSPECTION_SCANNER_ARGS += --warn-all --warn-error -I.
check_LTLIBRARIES = \
libdocexamples.la
AM_CFLAGS = $(GOBJECT_CFLAGS)
LIBS = $(GOBJECT_LIBS)
libdocexamples_la_SOURCES = $(srcdir)/doc-examples-obj.c $(srcdir)/doc-examples-obj.h
GIRS =
TYPELIBS = $(GIRS:.gir=.typelib)
INTROSPECTION_GIRS = $(GIRS)
CHECK_TARGETS = $(GIRS:.gir=-C.page.check) $(GIRS:.gir=-Python.page.check)
MALLARD_DIRS = $(GIRS:.gir=-C) $(GIRS:.gir=-Python)
EXPECTED_MALLARD_DIRS = $(MALLARD_DIRS:=-expected)
CLEANFILES = $(TYPELIBS) $(GIRS)
BUILT_SOURCES = $(MALLARD_DIRS)
EXTRA_DIST = $(EXPECTED_MALLARD_DIRS)
DocExamples-1.0.gir: $(top_builddir)/Gio-2.0.gir libdocexamples.la
DocExamples_1_0_gir_LIBS = libdocexamples.la
DocExamples_1_0_gir_INCLUDES = cairo-1.0 Gio-2.0
DocExamples_1_0_gir_FILES = $(libdocexamples_la_SOURCES)
#DocExamples_1_0_gir_SCANNERFLAGS = --c-include="regress.h"
GIRS += DocExamples-1.0.gir
%-C: %.gir
$(AM_V_GEN)
$(AM_V_at)$(MKDIR_P) $*-C
$(AM_V_at)rm -f $*-C/*.page
$(AM_V_at)$(INTROSPECTION_DOCTOOL) --language C $*.gir -o $*-C/
%-Python: %.gir
$(AM_V_GEN)
$(AM_V_at)$(MKDIR_P) $*-Python
$(AM_V_at)rm -f $*-Python/*.page
$(AM_V_at)$(INTROSPECTION_DOCTOOL) --language Python $*.gir -o $*-Python/
%-C.page.check: %-C
@diff -u -w -B -U 10 $(srcdir)/$*-C-expected $*-C && echo " TEST $*-C"
%-Python.page.check: %-Python
@diff -u -w -B -U 10 $(srcdir)/$*-Python-expected $*-Python && echo " TEST $*-Python"
check-local: $(CHECK_TARGETS) $(TYPELIBS)
clean-local:
@rm -rf $(MALLARD_DIRS)
|