File: Makefile.am

package info (click to toggle)
pygtksourceview 2.2.0-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,824 kB
  • ctags: 54
  • sloc: sh: 9,128; xml: 4,454; python: 299; makefile: 171; ansic: 26
file content (47 lines) | stat: -rw-r--r-- 1,314 bytes parent folder | download
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
# require automake-1.9
AUTOMAKE_OPTIONS=1.9

SUBDIRS = test

if ENABLE_DOCS
SUBDIRS += docs
endif

INCLUDES = $(PYTHON_INCLUDES)

EXTRA_DIST = \
  gtksourceview2.defs \
  gtksourceview2.override \
  pygtksourceview-2.0.pc.in

defsdir = $(datadir)/pygtk/2.0/defs
defs_DATA = gtksourceview2.defs

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = pygtksourceview-2.0.pc

if PLATFORM_WIN32
no_undefined = -no-undefined
pyd_ext = -shrext ".pyd"
endif

# pygtksourceview2 module
pyexec_LTLIBRARIES = gtksourceview2.la
gtksourceview2_la_LDFLAGS = -module -avoid-version -export-symbols-regex initgtksourceview2 $(no_undefined) $(pyd_ext)
gtksourceview2_la_CFLAGS = $(PYGTKSOURCEVIEW_CFLAGS)
gtksourceview2_la_LIBADD = $(PYGTKSOURCEVIEW_LIBS) $(PYTHON_LIBS)
gtksourceview2_la_SOURCES = gtksourceview2module.c 
nodist_gtksourceview2_la_SOURCES = gtksourceview2.c
gtksourceview2.c: gtksourceview2.defs gtksourceview2.override
CLEANFILES = gtksourceview2.c

.defs.c:
	(cd $(srcdir)\
	&& $(PYTHON) $(CODEGEN) \
	    --override $*.override \
	    --register @PYGTK_DATADIR@/pygtk/2.0/defs/gdk-types.defs \
	    --register @PYGTK_DATADIR@/pygtk/2.0/defs/pango-types.defs \
	    --register @PYGTK_DATADIR@/pygtk/2.0/defs/gtk-types.defs \
		--prefix py$* $*.defs) > gen-$*.c \
	    && cp gen-$*.c $*.c \
	    && rm -f gen-$*.c