From 3d1b7c935020f7ddfdf6322985b2bf09405a5b26 Mon Sep 17 00:00:00 2001 From: Michal Vaner Date: Sat, 8 Nov 2008 13:35:10 +0100 Subject: [PATCH] Install UCW perl modules Other modules, like Ulimits, needs installation routines. --- ucw/perl/UCW/Configure/Makefile | 9 ++++++++- ucw/perl/UCW/Makefile | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/ucw/perl/UCW/Configure/Makefile b/ucw/perl/UCW/Configure/Makefile index f5540a17..43ed4c3b 100644 --- a/ucw/perl/UCW/Configure/Makefile +++ b/ucw/perl/UCW/Configure/Makefile @@ -2,7 +2,14 @@ DIRS+=ucw/perl/UCW/Configure EXTRA_RUNDIRS+=lib/perl5/UCW/Configure -CONFIGURE_MODULES=$(addprefix $(o)/ucw/perl/UCW/Configure/,C.pm Doc.pm Paths.pm Pkg.pm) +UCW_CONFIGURE_PERL_MODULES=$(addsuffix .pm, C Doc Paths Pkg) +CONFIGURE_MODULES=$(addprefix $(o)/ucw/perl/UCW/Configure/,$(UCW_CONFIGURE_PERL_MODULES)) PROGS+=$(CONFIGURE_MODULES) $(CONFIGURE_MODULES) : PERL_MODULE_DIR=UCW/Configure + +INSTALL_TARGETS+=install-perl-ucw-configure +install-perl-ucw-configure: + install -d -m 755 $(DESTDIR)$(INSTALL_PERL_DIR)/UCW/Configure + install -m 644 $(addprefix $(s)/ucw/perl/UCW/Configure/,$(UCW_CONFIGURE_PERL_MODULES)) $(DESTDIR)$(INSTALL_PERL_DIR)/UCW/Configure +.PHONY: install-perl-ucw-configure diff --git a/ucw/perl/UCW/Makefile b/ucw/perl/UCW/Makefile index b080fec7..1ae12212 100644 --- a/ucw/perl/UCW/Makefile +++ b/ucw/perl/UCW/Makefile @@ -2,6 +2,13 @@ DIRS+=ucw/perl/UCW EXTRA_RUNDIRS+=lib/perl5/UCW -PROGS+=$(addprefix $(o)/ucw/perl/UCW/,Config.pm Log.pm CGI.pm Configure.pm) +UCW_PERL_MODULES=$(addsuffix .pm,Config Log CGI Configure) +PROGS+=$(addprefix $(o)/ucw/perl/UCW/,$(UCW_PERL_MODULES)) include $(s)/ucw/perl/UCW/Configure/Makefile + +INSTALL_TARGETS+=install-perl-ucw +install-perl-ucw: + install -d -m 755 $(DESTDIR)$(INSTALL_PERL_DIR)/UCW + install -m 644 $(addprefix $(s)/ucw/perl/UCW/,$(UCW_PERL_MODULES)) $(DESTDIR)$(INSTALL_PERL_DIR)/UCW +.PHONY: install-perl-ucw -- 2.39.2