[gimp] plug-ins: in pygimp/plug-ins/Makefile.am, re-copy plug-ins upon change



commit 95044d86b3a30295ff315a449e1f33f7ae9a208d
Author: Ell <ell_se yahoo com>
Date:   Fri Feb 1 04:27:33 2019 -0500

    plug-ins: in pygimp/plug-ins/Makefile.am, re-copy plug-ins upon change
    
    In pygimp/plug-ins/Makefile.am, fix the rule for the generated
    plug-in files, so that they're re-copied to the build dir upon
    changes to the source plug-in files.

 plug-ins/pygimp/plug-ins/Makefile.am | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/pygimp/plug-ins/Makefile.am b/plug-ins/pygimp/plug-ins/Makefile.am
index da9ee22c15..5caf2b63b6 100644
--- a/plug-ins/pygimp/plug-ins/Makefile.am
+++ b/plug-ins/pygimp/plug-ins/Makefile.am
@@ -41,8 +41,12 @@ test_scripts = \
        sphere/sphere.py                                                \
        whirlpinch/whirlpinch.py
 
-%.py:
-       mkdir -p $(@D) && cp -f $(srcdir)/$(@F) $@
+$(scripts) $(test_scripts): $(source_scripts)
+       @                                                       \
+       dir=`dirname "$@"`;                                     \
+       base=`basename "$@"`;                                   \
+       echo "  GEN      $@";                                   \
+       mkdir -p "$$dir" && cp -f "$(srcdir)/$$base" "$@";
 
 nobase_pluginexec_SCRIPTS = $(scripts)
 


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