[gegl] operations: make module.c dependent on Makefile



commit 8bf81796b7e8ec8409f04c87c77b351cab04c97c
Author: Ell <ell_se yahoo com>
Date:   Sun Nov 11 13:31:15 2018 -0500

    operations: make module.c dependent on Makefile
    
    Make the various module.c files dependent on the corresponding
    Makefile, so that they get regenerated whenever the corresponding
    Makefile.am changes, configure.ac changes, or GEGL is reconfigured.

 operations/common-gpl3+/Makefile.am | 5 +++--
 operations/common/Makefile.am       | 5 +++--
 operations/core/Makefile.am         | 5 +++--
 operations/generated/Makefile.am    | 5 +++--
 4 files changed, 12 insertions(+), 8 deletions(-)
---
diff --git a/operations/common-gpl3+/Makefile.am b/operations/common-gpl3+/Makefile.am
index 417ff177a..a0080a935 100644
--- a/operations/common-gpl3+/Makefile.am
+++ b/operations/common-gpl3+/Makefile.am
@@ -61,5 +61,6 @@ gegl_common_gpl3_la_SOURCES =\
        whirl-pinch.c \
        wind.c
 
-module.c: $(gegl_common_gpl3_la_SOURCES)
-       $(top_srcdir)/tools/gen-loader.sh $^ > module.c
+module.c: Makefile $(gegl_common_gpl3_la_SOURCES)
+       $(AM_V_GEN) \
+       $(top_srcdir)/tools/gen-loader.sh `echo $^ | cut -d' ' -f2-` > module.c
diff --git a/operations/common/Makefile.am b/operations/common/Makefile.am
index 3264f1eaf..29ee51447 100644
--- a/operations/common/Makefile.am
+++ b/operations/common/Makefile.am
@@ -127,5 +127,6 @@ gegl_common_la_SOURCES =\
        weighted-blend.c \
        write-buffer.c
 
-module.c: $(gegl_common_la_SOURCES)
-       $(top_srcdir)/tools/gen-loader.sh $^ > module.c
+module.c: Makefile $(gegl_common_la_SOURCES)
+       $(AM_V_GEN) \
+       $(top_srcdir)/tools/gen-loader.sh `echo $^ | cut -d' ' -f2-` > module.c
diff --git a/operations/core/Makefile.am b/operations/core/Makefile.am
index 88828462d..c6f79e1d4 100644
--- a/operations/core/Makefile.am
+++ b/operations/core/Makefile.am
@@ -24,6 +24,7 @@ gegl_core_la_SOURCES =\
        json.c \
        nop.c
 
-module.c: $(gegl_core_la_SOURCES)
-       $(top_srcdir)/tools/gen-loader.sh $^ > module.c
+module.c: Makefile $(gegl_core_la_SOURCES)
+       $(AM_V_GEN) \
+       $(top_srcdir)/tools/gen-loader.sh `echo $^ | cut -d' ' -f2-` > module.c
 
diff --git a/operations/generated/Makefile.am b/operations/generated/Makefile.am
index a5d70bb3e..99be1a8fc 100644
--- a/operations/generated/Makefile.am
+++ b/operations/generated/Makefile.am
@@ -41,5 +41,6 @@ gegl_generated_la_SOURCES = \
   xor.c \
   module.c
 
-module.c: $(gegl_generated_la_SOURCES)
-       $(top_srcdir)/tools/gen-loader.sh $^ > module.c
+module.c: Makefile $(gegl_generated_la_SOURCES)
+       $(AM_V_GEN) \
+       $(top_srcdir)/tools/gen-loader.sh `echo $^ | cut -d' ' -f2-` > module.c


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