summaryrefslogtreecommitdiff
path: root/gtk/Makefile.am
diff options
context:
space:
mode:
authorJames Henstridge <james@daa.com.au>2001-07-03 02:52:05 +0000
committerJames Henstridge <jamesh@src.gnome.org>2001-07-03 02:52:05 +0000
commit08789548c7dcf822eae6b21116ed505e1c6b7f42 (patch)
tree281a8a5de01b7d2942642663b21d78c1b9cad428 /gtk/Makefile.am
parentf75d268b4d693a201e7fdbc590f1a30543e5e763 (diff)
downloadpygtk-08789548c7dcf822eae6b21116ed505e1c6b7f42.tar.gz
add pygtk-codegen-2.0 to list of files to be processed.
2001-07-03 James Henstridge <james@daa.com.au> * configure.in (AC_OUTPUT): add pygtk-codegen-2.0 to list of files to be processed. * codegen/codegen.py (register_types): fix typo s/parser/defsparser/ * gtk/Makefile.am ($(srcdir)/gtk.c): register types from pango.defs. * gtk/gtk.override (init): import the PangoContext and PangoLayout classes from the pango module.
Diffstat (limited to 'gtk/Makefile.am')
-rw-r--r--gtk/Makefile.am31
1 files changed, 10 insertions, 21 deletions
diff --git a/gtk/Makefile.am b/gtk/Makefile.am
index 2522073c..df96cd3f 100644
--- a/gtk/Makefile.am
+++ b/gtk/Makefile.am
@@ -1,6 +1,5 @@
-INCLUDES = -I$(top_srcdir) $(PYTHON_INCLUDES) $(GTK_CFLAGS) \
- $(GDK_IMLIB_CFLAGS) $(LIBGLADE_CFLAGS) $(GTKGL_CFLAGS) -Wall
+INCLUDES = -I$(top_srcdir) $(PYTHON_INCLUDES) $(GTK_CFLAGS) -Wall
pygtkdir = $(pythondir)/gtk
pygtk_PYTHON = __init__.py GTK.py GDK.py
@@ -28,28 +27,18 @@ $(srcdir)/gtk.c: $(srcdir)/gtk.defs $(srcdir)/gdk.defs \
$(srcdir)/gtk-extrafuncs.defs $(srcdir)/gtk.override
-chmod a+w $(srcdir)
cd $(srcdir) \
- && $(PYTHON) ../codegen/codegen.py -o gtk.override -p pygtk gtk.defs > gen-gtk.c \
+ && $(PYTHON) ../codegen/codegen.py \
+ --register ../pango.defs \
+ --override gtk.override \
+ --prefix pygtk gtk.defs > gen-gtk.c \
&& cp gen-gtk.c gtk.c \
&& rm -f gen-gtk.c
-$(srcdir)/libglade.c: $(srcdir)/libglade.defs $(srcdir)/libglade.override
- -chmod a+w $(srcdir)
- cd $(srcdir) \
- && $(PYTHON) ../codegen/codegen.py -r gtk.defs -o libglade.override -p libglade libglade.defs > gen-libglade.c \
- && cp gen-libglade.c libglade.c \
- && rm -f gen-libglade.c
-
-$(srcdir)/gtkgl.c: $(srcdir)/gtkgl.defs $(srcdir)/gtkgl.override
- -chmod a+w $(srcdir)
- cd $(srcdir) \
- && $(PYTHON) ../codegen/codegen.py -r gtk.defs -o gtkgl.override -p pygtkgl gtkgl.defs > gen-gtkgl.c \
- && cp gen-gtkgl.c gtkgl.c \
- && rm -f gen-gtkgl.c
-
-
# a hack so that gtk.c is not included in the final package.
dist-hook:
- -rm -f $(distdir)/gtk.c $(distdir)/libglade.c $(distdir)/gtkgl.c
+ -rm -f $(distdir)/gtk.c
+
+defsdir = $(pkgdatadir)/2.0/defs
+defs_DATA = gtk.defs gtk-extrafuncs.defs gdk.defs
-EXTRA_DIST = gtk.defs gtk-extrafuncs.defs gdk.defs gtk.override \
- libglade.defs libglade.override gtkgl.defs gtkgl.override
+EXTRA_DIST = gtk.defs gtk-extrafuncs.defs gdk.defs gtk.override