]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/perl/UCW/Makefile
Configure: Moved LibUCW specific Darwin hacks to the right place
[libucw.git] / ucw / perl / UCW / Makefile
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