# ... ## ----------------------------------------------------- ## # discover where we want to install Perl interface modules # that come bundled with this package / src kit (as with # the imagemagick software) ## ----------------------------------------------------- ## P_INSTALL_CONF = UNDEFINED .PHONY : pmdest sinclude cpanp.mk define Perl1 use CPANPLUS::Backend; my $gregory = CPANPLUS::Backend->new; my $corso = $gregory->configure_object; for ($corso->options( type => q/conf/ )) { /makemakerflags/ && print $corso->get_conf(q|makemakerflags|);} endef cpanp.mk : pmdest @echo >$@ "P_INSTALL_CONF := $(strip $(shell cat $<))" pmdest: @perl -le '$(strip $(value Perl1))' >$@ _debug1: cpanp.mk @cat $< # ... build-pm: pmdest build-stamp @echo $(if $(filter $(P_INSTALL_CONF), UNDEFINED, $(error WE HAVE NO VALID DEF for P_INSTALL_CONF), Perl build starting ...)) cd $(CURDIR)/PerlMagick && perl Makefile.PL $(P_INSTALL_CONF) # ... #### use CPANPLUS::Backend; my $gregory = CPANPLUS::Backend->new; my $corso = $gregory->configure_object; for ($corso->options( type => q/conf/ )) { /makemakerflags/ && print $corso->get_conf(q|makemakerflags|) }