aboutsummaryrefslogtreecommitdiff
path: root/0.8.0/src/gtkpaludis/vtemm/defs/Makefile.am
blob: 7fa3843edeebe474fbe15217b3b3382c696d2a7e (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
vte_defs_included = \
	vte_methods.defs \
	vte_vfuncs.defs \
	vte_enums.defs \
	vte_signals.defs

vte_defs = \
	$(vte_defs_included) \
	vte.defs

if ENABLE_GTK

noinst_DATA = $(vte_defs)
noinst_PROGRAMS = force_automake_to_include_cxxcompile

endif

INCLUDES = $(GTKDEPS_CFLAGS)

force_automake_to_include_cxxcompile_SOURCES = force_automake_to_include_cxxcompile.cc

force_automake_to_include_cxxcompile.cc :
	echo 'int main(int, char *[]) { }' > $@

generate_defs_vte : generate_defs_vte.cc
	$(CXXCOMPILE) $(GTKDEPS_LIBS) -lglibmm_generate_extra_defs-2.4 -o $@ $<

CLEANFILES = *~ force_automake_to_include_cxxcompile.cc generate_defs_vte
MAINTAINERCLEANFILES = Makefile.in $(vte_defs)

vte_methods.defs :
	if ! python `pkg-config --variable=datadir pygtk-2.0`/pygtk/2.0/codegen/h2def.py \
	    `pkg-config --variable=includedir vte`/vte/*.h \
	    > $@ ; then rm $@ ; false ; fi

vte_enums.defs :
	if ! perl $(srcdir)/enum.pl `pkg-config --variable=includedir vte`/vte/*.h > $@ ; \
	    then rm $@ ; false ; fi

vte_signals.defs : generate_defs_vte
	./generate_defs_vte | sed -e 's~const-gchar\*~gchar*~' > $@

vte.defs :
	echo > $@
	for a in $(vte_defs_included) ; do echo "(include $${a})" >> $@ ; done

vte_vfuncs.defs :
	touch $@

EXTRA_DIST = enum.pl generate_defs_vte.cc