-# Copyright 1999-2010 ImageMagick Studio LLC, a non-profit organization
+# Copyright 1999-2018 ImageMagick Studio LLC, a non-profit organization
# dedicated to making software imaging solutions freely available.
#
# You may not use this file except in compliance with the License. You may
# Makefile for building PerlMagick.
# If source files missing, see if they can be obtained via VPATH
-perl-sources:
+#
+$(PERLMAGICK)/quantum/@MAGICK_ABI_SUFFIX@.xs: $(PERLMAGICK)/quantum/quantum.xs
+ $(AM_V_GEN) $(LN_S) quantum.xs $@
+
+$(PERLMAGICK)/quantum/@MAGICK_ABI_SUFFIX@.pm: $(PERLMAGICK)/quantum/quantum.pm
+ $(AM_V_GEN) $(LN_S) quantum.pm $@
+
+perl-quantum-sources: $(PERLMAGICK)/quantum/@MAGICK_ABI_SUFFIX@.xs $(PERLMAGICK)/quantum/@MAGICK_ABI_SUFFIX@.pm
+
+perl-sources: perl-quantum-sources
@if test -n "$(VPATH)" ; then \
echo "Linking PerlMagick Sources ..." ; \
imagemagick=`(cd $(VPATH) ; pwd)` && \
( cd $(PERLMAGICK) && \
- sh $$imagemagick/config/lndir.sh $$imagemagick/$(PERLMAGICK) ) \
+ sh $$imagemagick/config/lndir.sh $$imagemagick/$(PERLMAGICK) ; ) \
fi ; \
touch perl-sources
-$(top_srcdir)/$(PERLMAGICK)/Magick.pm : $(PERLMAGICK)/Magick.pm
- @if test -n "$(VPATH)" ; then \
- echo "Updating $(PERLMAGICK)/Magick.pm ..." ; \
- cp $(PERLMAGICK)/Magick.pm $(top_srcdir)/$(PERLMAGICK)/Magick.pm ; \
- fi
-
-PERLMAGICK_MAINTAINER_TARGETS=$(top_srcdir)/$(PERLMAGICK)/Magick.pm
-
if WITH_PERL
PERLMAGICK=PerlMagick
if WITH_PERL_DYNAMIC
-PERLMAGICK_CHECKSCRIPTS =
+PERLMAGICK_CHECKSCRPTS =
$(PERLMAKEFILE): perl-sources $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS) $(PERLMAKEMAKER)
cd $(PERLMAGICK) && @PERL@ Makefile.PL $(PERL_MAKE_OPTIONS)
install-exec-perl: $(PERLMAKEFILE)
( cd $(PERLMAGICK) && $(MAKE) CC='@CC@' && \
- $(MAKE) CC='@CC@' install && \
- $(MAKE) clean && rm -f Makefile.old )
+ $(MAKE) CC='@CC@' install )
all-perl: perl-sources
PERLSTATICNAME=PerlMagick
-PERLMAGICK_CHECKSCRIPTS = perl-build
+PERLMAGICK_CHECKSCRPTS = perl-build
$(PERLMAKEFILE): perl-sources $(MAGICKCORE_LIBS) $(MAGICKWAND_LIBS) $(PERLMAKEMAKER)
cd $(PERLMAGICK) && @PERL@ Makefile.PL MAP_TARGET=$(PERLSTATICNAME) $(PERL_MAKE_OPTIONS) && $(MAKE) Makefile ; $(MAKE) Makefile
( if test -f Makefile ; then $(MAKE) CC='@CC@' clean ; fi ) ; \
( if test -f Makefile ; then $(MAKE) CC='@CC@' clean ; fi ) ; \
rm -f Makefile.old PerlMagick ; \
- rm -f t/output* t/jng/*_tmp.jng t/*/output* )
+ rm -f t/output* t/jng/*_tmp.jng t/*/output* ; \
+ rm -f quantum/@MAGICK_ABI_SUFFIX@.xs;\
+ rm -f quantum/@MAGICK_ABI_SUFFIX@.pm;\
+ rm -f Magick.pm;)
rm -f perl-sources
distclean-perl: clean-perl