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.
This commit is contained in:
Jehan 2019-08-07 19:52:09 +02:00
parent 863c0849c8
commit faf2db71cd
1 changed files with 19 additions and 49 deletions

View File

@ -3,61 +3,31 @@
SUBDIRS = \
python-console
pluginexecdir = $(gimpplugindir)/plug-ins
palette_offsetdir = $(gimpplugindir)/plug-ins/palette-offset
palette_offset_SCRIPTS = palette-offset.py
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
palette_to_gradientdir = $(gimpplugindir)/plug-ins/palette-to-gradient
palette_to_gradient_SCRIPTS = palette-to-gradient.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)
# 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