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)
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 # XXX: This is a hack. UCW::Configure is a part of the build system,
12 # not of LibUCW proper. Nevertheless, we should avoid moving things
13 # around in point releases, so we are keeping it here with a special
14 # installation target.
15 install-perl-ucw-configure:
16 install -d -m 755 $(DESTDIR)$(INSTALL_PERL_DIR)/UCW/Configure
17 install -m 644 $(s)/ucw/perl/UCW/Configure.pm $(DESTDIR)$(INSTALL_PERL_DIR)/UCW
18 install -m 644 $(addprefix $(s)/ucw/perl/UCW/Configure/,$(UCW_CONFIGURE_PERL_MODULES)) $(DESTDIR)$(INSTALL_PERL_DIR)/UCW/Configure
19 .PHONY: install-perl-ucw-configure