1 # Perl modules for Configure
3 DIRS+=ucw/perl/UCW/Configure
4 EXTRA_RUNDIRS+=lib/perl5/UCW/Configure
5 UCW_CONFIGURE_PERL_MODULES=$(addsuffix .pm, C Doc Paths Pkg Build Perl)
6 CONFIGURE_MODULES=$(addprefix $(o)/ucw/perl/UCW/Configure/,$(UCW_CONFIGURE_PERL_MODULES))
7 PROGS+=$(CONFIGURE_MODULES)
9 $(CONFIGURE_MODULES) : PERL_MODULE_DIR=UCW/Configure
11 INSTALL_TARGETS+=install-perl-ucw-configure
13 # XXX: This is a hack. UCW::Configure is a part of the build system,
14 # not of LibUCW proper. Nevertheless, we should avoid moving things
15 # around in point releases, so we are keeping it here with a special
16 # installation target.
17 install-perl-ucw-configure:
18 install -d -m 755 $(DESTDIR)$(INSTALL_PERL_DIR)/UCW/Configure
19 install -m 644 $(s)/ucw/perl/UCW/Configure.pm $(DESTDIR)$(INSTALL_PERL_DIR)/UCW
20 install -m 644 $(addprefix $(s)/ucw/perl/UCW/Configure/,$(UCW_CONFIGURE_PERL_MODULES)) $(DESTDIR)$(INSTALL_PERL_DIR)/UCW/Configure
21 .PHONY: install-perl-ucw-configure