summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 49154b489f909529e5b3576da665fe5889da8923 (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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# require automake-1.5
AUTOMAKE_OPTIONS = 1.5

SUBDIRS = codegen gtk

INCLUDES = $(PYTHON_INCLUDES) $(GLIB_CFLAGS) $(PANGO_CFLAGS) $(ATK_CFLAGS)

pyexec_LTLIBRARIES = gobjectmodule.la pangomodule.la atkmodule.la

gobjectmodule_la_LDFLAGS = -module -avoid-version \
 -export-symbols-regex initgobject
gobjectmodule_la_SOURCES = \
	gobjectmodule.c \
	pygobject.h
gobjectmodule_la_LIBADD = $(GLIB_LIBS)

pangomodule_la_LDFLAGS = -module -avoid-version \
 -export-symbols-regex initpango
pangomodule_la_SOURCES = \
  pangomodule.c \
  pango.c
pangomodule_la_LIBADD = $(PANGO_LIBS)

atkmodule_la_LDFLAGS = -module -avoid-version -export-symbols-regex initatk
atkmodule_la_SOURCES = \
  atkmodule.c \
  atk.c
atkmodule_la_LIBADD = $(ATK_LIBS)

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

pkginclude_HEADERS = pygobject.h
pkgincludedir = $(includedir)/pygtk-2.0

noinst_PYTHON = ltihooks.py

dist-hook:
	-rm -f $(distdir)/pango.c

DISTCLEANFILES = pango.c atk.c

defsdir = $(pkgdatadir)/2.0/defs
defs_DATA = pango.defs pango-types.defs

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

EXTRA_DIST = \
  pygtk.spec \
  pygtk.spec.in \
  pygtk-2.0.pc.in \
  MAPPING \
  THREADS \
  atk.defs \
  atk.override \
  pango.defs \
  pango-types.defs \
  pango.override \
  examples/gobject/signal.py \
  examples/pygtk-demo/pygtk-demo.py \
  examples/pygtk-demo/demos/__init__.py \
  examples/pygtk-demo/demos/buttonbox.py \
  examples/pygtk-demo/demos/dnd.py \
  examples/pygtk-demo/demos/dndpixmap.py \
  examples/pygtk-demo/demos/menu.py \
  examples/pygtk-demo/demos/toolbar.py \
  examples/pygtk-demo/demos/treemodel.py \
  examples/ide/gtkcons.py \
  examples/ide/gtkdb.py \
  examples/ide/edit.py \
  examples/ide/browse.py \
  examples/ide/minibreak.xpm \
  examples/ide/README \
  examples/ide/gtkprof.py \
  examples/ide/pyide.py \
  examples/ide/break.xpm \
  examples/ide/return.xpm \
  examples/ide/next.xpm \
  examples/ide/continue.xpm \
  examples/ide/step.xpm \
  examples/ide/edit.xpm \
  examples/ide/run.xpm \
  examples/ide/quit.xpm \
  examples/simple/hello2.py \
  examples/simple/simple2.py \
  examples/simple/tooltip2.py \
  examples/simple/scribble.py \
  examples/simple/dnd.py \
  examples/simple/dndpixmap.py \
  examples/simple/README \
  examples/pygtk-demo/pygtk-demo.py \
  examples/pygtk-demo/demos/__init__.py \
  examples/pygtk-demo/demos/dnd.py \
  examples/pygtk-demo/demos/dndpixmap.py \
  examples/pygtk-demo/demos/menu.py \
  examples/pygtk-demo/demos/treemodel.py \
  examples/neil/TAppli.py \
  examples/neil/TAppli2.py \
  examples/neil/TAppli3.py \
  examples/neil/TAppli4.py \
  examples/neil/TAppli5.py \
  examples/neil/bomb.xpm \
  examples/neil/gtk-logo.xpm \
  examples/neil/question.xpm \
  examples/neil/notebook.py \
  examples/neil/README \
  examples/glade/README \
  examples/glade/test2.glade \
  examples/glade/glade.py \
  examples/glade/test.glade \
  examples/gl/README \
  examples/gl/cone.py \
  examples/gl/dots.py \
  examples/gl/gears.py

snap:
	$(MAKE) dist distdir=$(PACKAGE)-SNAP-`date +"%Y%m%d"`