[gtksourceview] build: small improvements in Makefile.am files



commit 96e6978c08c9e20ea7c81b501c8ad82a57aeadb2
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Mon Aug 1 17:40:08 2016 +0200

    build: small improvements in Makefile.am files
    
    - Move more important stuff at the top.
    - Use TEST_PROGS variable after its value is filled (it doesn't change
    anything AFAIK, but it makes the code more natural).

 Makefile.am       |    8 ++++----
 tests/Makefile.am |    8 +++++---
 2 files changed, 9 insertions(+), 7 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 8d5d861..9f117c5 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,5 +1,9 @@
 SUBDIRS = gtksourceview po data docs tests testsuite build
 
+@CODE_COVERAGE_RULES@
+
+AM_DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --enable-glade-catalog
+
 pkgconfig_DATA = gtksourceview-3.0.pc
 
 EXTRA_DIST = \
@@ -92,8 +96,4 @@ MAINTAINERCLEANFILES =                \
        test-driver             \
        `find "$(srcdir)" -type f -name Makefile.in -print`
 
-AM_DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --enable-glade-catalog
-
-@CODE_COVERAGE_RULES@
-
 -include $(top_srcdir)/git.mk
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 55b67bf..21a34e5 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -16,8 +16,6 @@ LDADD = $(top_builddir)/gtksourceview/libgtksourceview-3.0.la \
        $(DEP_LIBS) \
        $(TESTS_LIBS)
 
-noinst_PROGRAMS = $(TEST_PROGS)
-
 BUILT_SOURCES =                                \
        test-completion-resources.c     \
        test-search-resources.c         \
@@ -34,7 +32,9 @@ test-search-resources.c: test-search.gresource.xml $(shell $(GLIB_COMPILE_RESOUR
 test-widget-resources.c: test-widget.gresource.xml $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) 
--generate-dependencies $(srcdir)/test-widget.gresource.xml)
        $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate-source 
$(srcdir)/test-widget.gresource.xml
 
-TEST_PROGS = test-completion
+TEST_PROGS =
+
+TEST_PROGS += test-completion
 test_completion_SOURCES = test-completion.c
 nodist_test_completion_SOURCES = test-completion-resources.c
 
@@ -55,6 +55,8 @@ TEST_PROGS += test-widget
 test_widget_SOURCES = test-widget.c
 nodist_test_widget_SOURCES = test-widget-resources.c
 
+noinst_PROGRAMS = $(TEST_PROGS)
+
 python_tests =                 \
        test-completion.py      \
        test-widget.py


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