[gimp] tools: build the SVG tools unconditionally, and clean up the Makefile a bit



commit 84439a874860c517838c4d5969b353ced1c31b1a
Author: Michael Natterer <mitch gimp org>
Date:   Thu Jul 21 12:20:14 2016 +0200

    tools: build the SVG tools unconditionally, and clean up the Makefile a bit

 tools/.gitignore  |    6 +++++-
 tools/Makefile.am |   40 +++++++++++++++++++++-------------------
 2 files changed, 26 insertions(+), 20 deletions(-)
---
diff --git a/tools/.gitignore b/tools/.gitignore
index 4c7fef5..69fd6fc 100644
--- a/tools/.gitignore
+++ b/tools/.gitignore
@@ -5,5 +5,9 @@
 /kernelgen
 /gimptool-2.0
 /gimptool-2.0.exe
-/test-clipboard
 /test-clipboard.exe
+/test-clipboard.exe
+/invert-svg
+/invert-svg.exe
+/compute-svg-viewbox
+/compute-svg-viewbox.exe
diff --git a/tools/Makefile.am b/tools/Makefile.am
index 2cf4b50..5876e21 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -3,12 +3,10 @@
 libgimpbase = $(top_builddir)/libgimpbase/libgimpbase-$(GIMP_API_VERSION).la
 
 if WITH_PDBGEN
-D_pdbgen = pdbgen
-else
-D_pdbgen =
+PDBGEN = pdbgen
 endif
 
-SUBDIRS = $(D_pdbgen)
+SUBDIRS = $(PDBEN)
 
 if OS_WIN32
 
@@ -24,39 +22,43 @@ bin_PROGRAMS = gimptool-2.0
 
 endif
 
-noinst_PROGRAMS = test-clipboard
+noinst_PROGRAMS = \
+       test-clipboard  \
+       invert-svg      \
+       compute-svg-viewbox
 
 EXTRA_PROGRAMS = \
        kernelgen
 
-gimptool_2_0_SOURCES = \
-       gimptool.c
+
+gimptool_2_0_SOURCES = gimptool.c
 
 gimptool_2_0_LDADD = \
-       $(libgimpbase)                  \
+       $(libgimpbase)  \
        $(GTK_LIBS)
 
+
 kernelgen_SOURCES = kernelgen.c
 
+
 test_clipboard_SOURCES = test-clipboard.c
 
-test_clipboard_LDADD = \
-       $(GTK_LIBS)
+test_clipboard_LDADD = $(GTK_LIBS)
+
+
+invert_svg_SOURCES = invert-svg.c
+
+invert_svg_CFLAGS = $(SVG_CFLAGS)
+
+invert_svg_LDADD = $(SVG_LIBS)
 
-if ENABLE_VECTOR_ICONS
-invert-svg$(BUILD_EXEEXT): invert-svg.c
-       $(CC_FOR_BUILD) -o $@ $< $(NATIVE_GLIB_LIBS) $(NATIVE_GLIB_CFLAGS)
 
 compute_svg_viewbox_SOURCES = compute-svg-viewbox.c
 
-compute_svg_viewbox_CFLAGS = \
-       $(SVG_CFLAGS)
+compute_svg_viewbox_CFLAGS = $(SVG_CFLAGS)
 
-compute_svg_viewbox_LDADD = \
-       $(SVG_LIBS)
+compute_svg_viewbox_LDADD = $(SVG_LIBS)
 
-all: invert-svg$(BUILD_EXEEXT)
-endif
 
 AM_CPPFLAGS = \
        -DGIMP_APP_VERSION=\"@GIMP_APP_VERSION@\"               \


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