[gegl-gtk] Examples: Move to per-language subdirectories



commit 625bfb522710e8a4a0a9e4b52136f838122fc6a0
Author: Jon Nordby <jononor gmail com>
Date:   Wed Sep 21 01:38:00 2011 +0200

    Examples: Move to per-language subdirectories

 configure.ac                                       |    1 +
 examples/Makefile.am                               |   31 +-------------------
 examples/c/Makefile.am                             |   31 ++++++++++++++++++++
 examples/{ => c}/gegl-gtk-basic.c                  |    0
 examples/{ => c}/gegl-gtk-display-op.c             |    0
 examples/{ => c}/gegl-gtk-paint.c                  |    0
 .../gegl-gtk-basic.py}                             |    0
 7 files changed, 33 insertions(+), 30 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 1faeb94..ab33828 100644
--- a/configure.ac
+++ b/configure.ac
@@ -306,6 +306,7 @@ Makefile
 gegl-gtk/Makefile
 operations/Makefile
 examples/Makefile
+examples/c/Makefile
 tests/Makefile
 docs/reference/Makefile
 gegl-gtk2-0.1.pc
diff --git a/examples/Makefile.am b/examples/Makefile.am
index b92ac59..d080bd3 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -1,31 +1,2 @@
 
-CFILES = $(wildcard $(srcdir)/*.c)
-bins   = $(subst $(srcdir)/,,$(CFILES:.c=))
-EXTRA_DIST = $(wildcard *.c) $(wildcard util/*.[ch])
-
-gegl_lt_cc_v = $(gegl_lt_cc_v_$(V))
-gegl_lt_cc_v_ = $(gegl_lt_cc_v_$(AM_DEFAULT_VERBOSITY))
-gegl_lt_cc_v_0 = @echo "  CC     " $<;
-gegl_lt_ccld_v = $(gegl_lt_ccld_v_$(V))
-gegl_lt_ccld_v_ = $(gegl_lt_ccld_v_$(AM_DEFAULT_VERBOSITY))
-gegl_lt_ccld_v_0 = @echo "  CCLD   " $@;
-
-AM_CPPFLAGS = \
-	-I$(top_srcdir)/gegl-gtk
-
-AM_CFLAGS = $(GEGL_CFLAGS) $(GTK_CFLAGS)
-
-AM_LDFLAGS =  \
-	$(top_builddir)/gegl-gtk/libgegl-gtk GEGL_GTK_GTK_VERSION@- GEGL_GTK_API_VERSION@.la \
-	$(GEGL_LIBS) $(GTK_LIBS)
-
-all-local: $(bins)
-
-%: %.c $(GEGLHEADERS)
-	$(gegl_lt_cc_v) $(LIBTOOL) --quiet --mode=compile $(CC) $(DEFS) -I. -I$(top_builddir) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o $  lo $< 
-	$(gegl_lt_ccld_v) $(LIBTOOL) --quiet --mode=link $(CC) $(AM_LDFLAGS) $(LDFLAGS) $(CFLAGS) -o $@ $  lo $(LIBS)
-
-clean-local:
-	rm -f *.lo $(bins)
-
-
+SUBDIRS = c
diff --git a/examples/c/Makefile.am b/examples/c/Makefile.am
new file mode 100644
index 0000000..b92ac59
--- /dev/null
+++ b/examples/c/Makefile.am
@@ -0,0 +1,31 @@
+
+CFILES = $(wildcard $(srcdir)/*.c)
+bins   = $(subst $(srcdir)/,,$(CFILES:.c=))
+EXTRA_DIST = $(wildcard *.c) $(wildcard util/*.[ch])
+
+gegl_lt_cc_v = $(gegl_lt_cc_v_$(V))
+gegl_lt_cc_v_ = $(gegl_lt_cc_v_$(AM_DEFAULT_VERBOSITY))
+gegl_lt_cc_v_0 = @echo "  CC     " $<;
+gegl_lt_ccld_v = $(gegl_lt_ccld_v_$(V))
+gegl_lt_ccld_v_ = $(gegl_lt_ccld_v_$(AM_DEFAULT_VERBOSITY))
+gegl_lt_ccld_v_0 = @echo "  CCLD   " $@;
+
+AM_CPPFLAGS = \
+	-I$(top_srcdir)/gegl-gtk
+
+AM_CFLAGS = $(GEGL_CFLAGS) $(GTK_CFLAGS)
+
+AM_LDFLAGS =  \
+	$(top_builddir)/gegl-gtk/libgegl-gtk GEGL_GTK_GTK_VERSION@- GEGL_GTK_API_VERSION@.la \
+	$(GEGL_LIBS) $(GTK_LIBS)
+
+all-local: $(bins)
+
+%: %.c $(GEGLHEADERS)
+	$(gegl_lt_cc_v) $(LIBTOOL) --quiet --mode=compile $(CC) $(DEFS) -I. -I$(top_builddir) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o $  lo $< 
+	$(gegl_lt_ccld_v) $(LIBTOOL) --quiet --mode=link $(CC) $(AM_LDFLAGS) $(LDFLAGS) $(CFLAGS) -o $@ $  lo $(LIBS)
+
+clean-local:
+	rm -f *.lo $(bins)
+
+
diff --git a/examples/gegl-gtk-basic.c b/examples/c/gegl-gtk-basic.c
similarity index 100%
rename from examples/gegl-gtk-basic.c
rename to examples/c/gegl-gtk-basic.c
diff --git a/examples/gegl-gtk-display-op.c b/examples/c/gegl-gtk-display-op.c
similarity index 100%
rename from examples/gegl-gtk-display-op.c
rename to examples/c/gegl-gtk-display-op.c
diff --git a/examples/gegl-gtk-paint.c b/examples/c/gegl-gtk-paint.c
similarity index 100%
rename from examples/gegl-gtk-paint.c
rename to examples/c/gegl-gtk-paint.c
diff --git a/examples/gegl-gtk-python.py b/examples/python/gegl-gtk-basic.py
similarity index 100%
rename from examples/gegl-gtk-python.py
rename to examples/python/gegl-gtk-basic.py



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