[gtk+] examples: build examples that are included in the docs



commit 0ff28d72f68c25d85fa851fc214f9478d9cb2396
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Oct 15 12:37:21 2010 -0400

    examples: build examples that are included in the docs
    
    We build the examples that are included in the 'getting started'
    chapter of the docs to prevent them from bitrotting. Also
    remove the awk scripts used to extract the old examples from
    the tutorial, since the tutorial is gone. I'm still leaving
    the examples themeselves in place, for possible inclusion in
    'getting started' later on.

 configure.ac                       |    1 +
 examples/{Makefile => Makefile.am} |   28 ++++++++-------
 examples/README.1ST                |   41 ---------------------
 examples/extract.awk               |   69 ------------------------------------
 examples/extract.sh                |   30 ---------------
 examples/find-examples.sh          |    4 --
 6 files changed, 16 insertions(+), 157 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 52f36f9..8a678b5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1640,6 +1640,7 @@ po-properties/Makefile.in
 demos/Makefile
 demos/gtk-demo/Makefile
 demos/gtk-demo/geninclude.pl
+examples/Makefile
 tests/Makefile
 docs/Makefile
 docs/reference/Makefile
diff --git a/examples/Makefile b/examples/Makefile.am
similarity index 51%
rename from examples/Makefile
rename to examples/Makefile.am
index 6d54bea..e5a9f8d 100644
--- a/examples/Makefile
+++ b/examples/Makefile.am
@@ -1,5 +1,5 @@
 
-SUBDIRS = 	arrow \
+DIST_SUBDIRS = 	arrow \
 		aspectframe \
 		base \
 		buttonbox \
@@ -28,18 +28,20 @@ SUBDIRS = 	arrow \
 		spinbutton \
 		statusbar \
 		table \
-		tictactoe \
-		wheelbarrow
+		tictactoe
+# wheelbarrow
 
-all:
-	list='$(SUBDIRS)'; \
-	for subdir in $$list; do \
-	  (cd $$subdir && $(MAKE)); \
-	done
+INCLUDES = \
+	-I$(top_srcdir)				\
+	-I$(top_srcdir)/gdk			\
+	-DGDK_DISABLE_DEPRECATED		\
+	-DGTK_DISABLE_DEPRECATED		\
+	$(GTK_DEBUG_FLAGS)			\
+	$(GTK_DEP_CFLAGS)
 
-clean:
-	list='$(SUBDIRS)'; \
-	for subdir in $$list; do \
-	  (cd $$subdir && $(MAKE) clean); \
-	done
+LDADD = \
+	$(top_builddir)/gdk/$(gdktargetlib)		\
+	$(top_builddir)/gtk/$(gtktargetlib)		\
+	$(GTK_DEP_LIBS)
 
+bin_PROGRAMS = hello-world window-default



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]