[gimp] plug-ins: improve Makefile.am of python/ subdir.



commit faf2db71cde7ab8bdb2fe488ad20632827282fdf
Author: Jehan <jehan girinstud io>
Date:   Wed Aug 7 19:52:09 2019 +0200

    plug-ins: improve Makefile.am of python/ subdir.
    
    The old rules were crap and basically copying the scripts in build
    folder before installing. Get proper/simpler rules.

 plug-ins/python/Makefile.am | 72 +++++++++++++--------------------------------
 1 file changed, 21 insertions(+), 51 deletions(-)
---
diff --git a/plug-ins/python/Makefile.am b/plug-ins/python/Makefile.am
index d25aa47684..356de5c066 100644
--- a/plug-ins/python/Makefile.am
+++ b/plug-ins/python/Makefile.am
@@ -3,61 +3,31 @@
 SUBDIRS = \
        python-console
 
-pluginexecdir = $(gimpplugindir)/plug-ins
-
-source_scripts = \
-##     colorxhtml.py                   \
-##     file-openraster.py              \
-##     foggify.py                      \
-##     gradients-save-as-css.py        \
-##     histogram-export.py             \
-       palette-offset.py               \
-##     palette-sort.py                 \
-       palette-to-gradient.py
-##     py-slice.py                     \
-##     python-eval.py                  \
-##     spyro_plus.py                   \
-##                                     \
-##     benchmark-foreground-extract.py \
-##     clothify.py                     \
-##     shadow_bevel.py                 \
-##     sphere.py                       \
-##     whirlpinch.py
-
-scripts = \
-##     colorxhtml/colorxhtml.py                        \
-##     file-openraster/file-openraster.py              \
-##     foggify/foggify.py                              \
-##     gradients-save-as-css/gradients-save-as-css.py  \
-##     histogram-export/histogram-export.py            \
-       palette-offset/palette-offset.py                \
-##     palette-sort/palette-sort.py                    \
-       palette-to-gradient/palette-to-gradient.py
-##     py-slice/py-slice.py                            \
-##     python-eval/python-eval.py                      \
-##     spyro_plus/spyro_plus.py
-
-#test_scripts = \
-#      benchmark-foreground-extract/benchmark-foreground-extract.py    \
-#      clothify/clothify.py                                            \
-#      shadow_bevel/shadow_bevel.py                                    \
-#      sphere/sphere.py                                                \
-#      whirlpinch/whirlpinch.py
-
-$(scripts) $(test_scripts): $(source_scripts)
-       $(AM_V_GEN) mkdir -p $(@D) && cp -f "$(srcdir)/$(@F)" $@
-
-nobase_pluginexec_SCRIPTS = $(scripts)
+palette_offsetdir = $(gimpplugindir)/plug-ins/palette-offset
+palette_offset_SCRIPTS = palette-offset.py
+
+palette_to_gradientdir = $(gimpplugindir)/plug-ins/palette-to-gradient
+palette_to_gradient_SCRIPTS = palette-to-gradient.py
+
+# TODO: to be ported:
+##     colorxhtml.py
+##     file-openraster.py
+##     foggify.py
+##     gradients-save-as-css.py
+##     histogram-export.py
+##     palette-sort.py
+##     py-slice.py
+##     python-eval.py
+##     spyro_plus.py
 
 if GIMP_UNSTABLE
-nobase_pluginexec_SCRIPTS += $(test_scripts)
+##     benchmark-foreground-extract.py
+##     clothify.py
+##     shadow_bevel.py
+##     sphere.py
+##     whirlpinch.py
 endif
 
-EXTRA_DIST = \
-       $(source_scripts)
-
-CLEANFILES = $(scripts) $(test_scripts)
-
 # Python interpreter file.
 
 pyinterpdir = $(gimpplugindir)/interpreters


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