]> mj.ucw.cz Git - libucw.git/commitdiff
Install UCW perl modules
authorMichal Vaner <vorner@ucw.cz>
Sat, 8 Nov 2008 12:35:10 +0000 (13:35 +0100)
committerMichal Vaner <vorner@ucw.cz>
Sat, 8 Nov 2008 12:35:10 +0000 (13:35 +0100)
Other modules, like Ulimits, needs installation routines.

ucw/perl/UCW/Configure/Makefile
ucw/perl/UCW/Makefile

index f5540a17b9a34f861b7e3ee4572ad227f828b0e3..43ed4c3bcdbacee0881cc143089b0a8d23e25d61 100644 (file)
@@ -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
index b080fec7710b6b986c2124002954151108754f44..1ae12212abee583e31070466f01fd06b32576240 100644 (file)
@@ -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