Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/python/Makefile.am
blob: 146f4cf20c0a7db9dbfb2843db4c1b09d1e6cc89 (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
pkgpyexec_PYTHON =	\
	__init__.py	\
	webview.py	\
	config.py

INCLUDES =					\
	$(DEPS_CFLAGS)				\
	$(PYTHON_INCLUDES)			\
	$(PYGTK_CFLAGS)				\
	-I$(top_srcdir)/src

pkgpyexec_LTLIBRARIES = _hulahop.la

_hulahop_la_LDFLAGS = -module -avoid-version -R$(LIBXUL_DIR) -dlopen self
_hulahop_la_LIBADD = 				\
	$(LIBXUL_LIBS)				\
	$(DEPS_LIBS)				\
	$(top_builddir)/src/libhulahop.la

_hulahop_la_SOURCES = 			\
	hulahop.c			\
	hulahopmodule.c

hulahop.c: hulahop.defs hulahop.override

CLEANFILES = hulahop.c config.py
EXTRA_DIST = hulahop.override hulahop.defs config.py.in

.defs.c:
	(cd $(srcdir)\
	 && $(PYGTK_CODEGEN) \
	    --register $(PYGTK_DEFSDIR)/gdk-types.defs \
	    --register $(PYGTK_DEFSDIR)/gtk-types.defs \
	    --override $*.override \
	    --prefix py$* $*.defs) > gen-$*.c \
	&& cp gen-$*.c $*.c \
	&& rm -f gen-$*.c