diff options
author | Owen Taylor <otaylor@redhat.com> | 2003-05-06 21:55:41 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2003-05-06 21:55:41 +0000 |
commit | 629a0e14248812e55e9245bad9e01d9bc6bd2d0a (patch) | |
tree | 4805be6ed3f1fab22e7f536861e8e4f896e63b2c /demos | |
parent | 2e58122c793a66f6241ff4bfe74e8966a043eeb3 (diff) | |
download | gtk+-629a0e14248812e55e9245bad9e01d9bc6bd2d0a.tar.gz |
Patch from James Henstridge to update to automake-1.7 (#109542)
Tue May 6 16:50:52 2003 Owen Taylor <otaylor@redhat.com>
Patch from James Henstridge to update to automake-1.7
(#109542)
* autogen.sh: update to call newer tools.
* configure.in: various updates, to use M4 macros to put
variables that change each release at the top.
Use AC_HELP_STRING to format help strings.
Use AC_CONFIG_COMMANDS to generate gdkconfig.h.
* Makefile.am: require Automake 1.7. Remove gdk-2.0.pc and
gtk+-2.0.pc on uninstall. Pass --enable-gtk-doc to configure
during distcheck.
* docs/reference/*/Makefile.am: simplify to use the gtk-doc.make
makefile fragment.
* */Makefile.am: don't use STRIP_BEGIN/STRIP_END.
Use BUILT_SOURCES where appropriate.
Build generated files in builddir rather than srcdir.
Fix uninstall and distclean targets to satisfy distcheck.
===
* gdk/*/Makefile.am: Remove the hacks to get gdkenumtypes.h
built first, since we are now using BUILT_SOURCES.
* gdk/Makefile.am: Remove an outdated comment about gdk_headers.
* demos/gtk-demo/Makefile.am: Fix srcdir != buildd problem
with geninclude.pl.
* configure.in: Update versions to 2.3.0.
Diffstat (limited to 'demos')
-rw-r--r-- | demos/Makefile.am | 25 | ||||
-rw-r--r-- | demos/gtk-demo/Makefile.am | 61 |
2 files changed, 43 insertions, 43 deletions
diff --git a/demos/Makefile.am b/demos/Makefile.am index 6b0329b8fd..ee30ebdca9 100644 --- a/demos/Makefile.am +++ b/demos/Makefile.am @@ -2,27 +2,25 @@ SUBDIRS = gtk-demo -INCLUDES = @STRIP_BEGIN@ \ +INCLUDES = \ -I$(top_srcdir) \ -I$(top_builddir)/gdk \ -DG_DISABLE_DEPRECATED \ -DGDK_PIXBUF_DISABLE_DEPRECATED \ -DGDK_DISABLE_DEPRECATED \ -DGTK_DISABLE_DEPRECATED \ - @GTK_DEBUG_FLAGS@ \ - @GTK_DEP_CFLAGS@ \ -@STRIP_END@ + $(GTK_DEBUG_FLAGS) \ + $(GTK_DEP_CFLAGS) -DEPS = \ +DEPS = \ $(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GTK_API_VERSION).la \ - $(top_builddir)/gdk/@gdktargetlib@ \ - $(top_builddir)/gtk/@gtktargetlib@ + $(top_builddir)/gdk/$(gdktargetlib) \ + $(top_builddir)/gtk/$(gtktargetlib) -LDADDS = @STRIP_BEGIN@ \ +LDADDS = \ $(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GTK_API_VERSION).la \ - $(top_builddir)/gdk/@gdktargetlib@ \ - $(top_builddir)/gtk/@gtktargetlib@ \ -@STRIP_END@ + $(top_builddir)/gdk/$(gdktargetlib) \ + $(top_builddir)/gtk/$(gtktargetlib) noinst_PROGRAMS = \ testpixbuf \ @@ -38,6 +36,8 @@ else pixbuf_csource=GDK_PIXBUF_MODULE_FILE=$$topdir/gdk-pixbuf/gdk-pixbuf.loaders $$topdir/gdk-pixbuf/gdk-pixbuf-csource endif +BUILT_SOURCES = test-inline-pixbufs.h + test-inline-pixbufs.h: $(top_builddir)/gdk-pixbuf/gdk-pixbuf-csource $(top_builddir)/gdk-pixbuf/gdk-pixbuf.loaders apple-red.png gnome-foot.png (topdir=`cd $(top_builddir) && pwd` ; curdir=`pwd` ; \ cd $(srcdir) && \ @@ -59,7 +59,6 @@ testanimation_LDADD = $(LDADDS) pixbuf_demo_LDADD = $(LDADDS) testpixbuf_SOURCES = testpixbuf.c pixbuf-init.c -$(testpixbuf_OBJECTS): test-inline-pixbufs.h testpixbuf_drawable_SOURCES = testpixbuf-drawable.c pixbuf-init.c testpixbuf_save_SOURCES = testpixbuf-save.c testpixbuf_scale_SOURCES = testpixbuf-scale.c pixbuf-init.c @@ -76,3 +75,5 @@ EXTRA_DIST = \ gnome-gmush.png \ gnome-gsame.png \ gnu-keys.png + +DISTCLEANFILES = test-inline-pixbufs.h diff --git a/demos/gtk-demo/Makefile.am b/demos/gtk-demo/Makefile.am index 0fac5d8219..c12164382b 100644 --- a/demos/gtk-demo/Makefile.am +++ b/demos/gtk-demo/Makefile.am @@ -4,27 +4,26 @@ democodedir=$(datadir)/gtk-2.0/demo ## These should be in the order you want them to appear in the ## demo app, which means alphabetized by demo title, not filename -demos = @STRIP_BEGIN@ \ - appwindow.c \ - button_box.c \ - changedisplay.c \ - colorsel.c \ - dialog.c \ - drawingarea.c \ - editable_cells.c \ - images.c \ - item_factory.c \ - list_store.c \ - menus.c \ - panes.c \ - pixbufs.c \ - sizegroup.c \ - stock_browser.c \ - textview.c \ - tree_store.c \ -@STRIP_END@ +demos = \ + appwindow.c \ + button_box.c \ + changedisplay.c \ + colorsel.c \ + dialog.c \ + drawingarea.c \ + editable_cells.c \ + images.c \ + item_factory.c \ + list_store.c \ + menus.c \ + panes.c \ + pixbufs.c \ + sizegroup.c \ + stock_browser.c \ + textview.c \ + tree_store.c -INCLUDES = @STRIP_BEGIN@ \ +INCLUDES = \ -DDEMOCODEDIR="\"$(democodedir)\"" \ -I$(top_srcdir) \ -I$(top_builddir)/gdk \ @@ -32,20 +31,18 @@ INCLUDES = @STRIP_BEGIN@ \ -DGDK_PIXBUF_DISABLE_DEPRECATED \ -DGDK_DISABLE_DEPRECATED \ -DGTK_DISABLE_DEPRECATED \ - @GTK_DEBUG_FLAGS@ \ - @GTK_DEP_CFLAGS@ \ -@STRIP_END@ + $(GTK_DEBUG_FLAGS) \ + $(GTK_DEP_CFLAGS) DEPS = \ $(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GTK_API_VERSION).la \ - $(top_builddir)/gdk/@gdktargetlib@ \ - $(top_builddir)/gtk/@gtktargetlib@ + $(top_builddir)/gdk/$(gdktargetlib) \ + $(top_builddir)/gtk/$(gtktargetlib) -LDADDS = @STRIP_BEGIN@ \ +LDADDS = \ $(top_builddir)/gdk-pixbuf/libgdk_pixbuf-$(GTK_API_VERSION).la \ - $(top_builddir)/gdk/@gdktargetlib@ \ - $(top_builddir)/gtk/@gtktargetlib@ \ -@STRIP_END@ + $(top_builddir)/gdk/$(gdktargetlib) \ + $(top_builddir)/gtk/$(gtktargetlib) bin_PROGRAMS = gtk-demo @@ -54,8 +51,8 @@ BUILT_SOURCES = demos.h EXTRA_DIST = \ $(IMAGEFILES) -demos.h: $(demos) geninclude.pl - (cd $(srcdir) && $(PERL) ./geninclude.pl $(demos) > demos.h) +demos.h: @REBUILD@ $(demos) geninclude.pl + (here=`pwd` ; cd $(srcdir) && $(PERL) $$here/geninclude.pl $(demos)) > demos.h gtk_demo_SOURCES = \ $(demos) \ @@ -80,3 +77,5 @@ IMAGEFILES= alphatest.png \ gtk-logo-rgb.gif democode_DATA = $(demos) $(IMAGEFILES) + +DISTCLEANFILES = demos.h |