Package: libucw-dev
Section: libdevel
Architecture: any
-Depends: libucw@UCW_ABI_SUFFIX@ (= @VER@), libucw-perl, ${shlibs:Depends}, ${misc:Depends}
-Description: LibUCW development files
+Depends: libucw@UCW_ABI_SUFFIX@ (= @VER@), ${shlibs:Depends}, ${misc:Depends}
+Description: LibUCW development files, including the build system
Package: libucw-utils
Section: misc
Section: misc
Architecture: any
Depends: libucw@UCW_ABI_SUFFIX@, ${shlib:Depends}, ${misc:Depends}
-Description: Companion Perl scripts for LibUCW (UCW::Configure, UCW::CGI, UCW::Config, UCW::Log)
+Description: Companion Perl modules for LibUCW (UCW::CGI, UCW::Config, UCW::Log)
#ifdef CONFIG_DOC
Package: libucw-doc
dh_clean -k
dh_installdirs
$(MAKE) DESTDIR=$(CURDIR)/debian/libucw$(UCW_ABI_SUFFIX) install-libucw-lib
- $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-dev install-libucw-api
+ $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-dev install-libucw-api install-perl-ucw-configure install-build
$(MAKE) DESTDIR=$(CURDIR)/debian/libucw-utils install-ucw-shell install-ucw-utils
$(MAKE) DESTDIR=$(CURDIR)/debian/libucw-perl install-perl-ucw
ifdef CONFIG_DOC
$(CONFIGURE_MODULES) : PERL_MODULE_DIR=UCW/Configure
-UCW_PERL_INSTALL+=install-perl-ucw-configure
+# XXX: This is a hack. UCW::Configure is a part of the build system,
+# not of LibUCW proper. Nevertheless, we should avoid moving things
+# around in point releases, so we are keeping it here with a special
+# installation target.
install-perl-ucw-configure:
install -d -m 755 $(DESTDIR)$(INSTALL_PERL_DIR)/UCW/Configure
+ install -m 644 $(s)/ucw/perl/UCW/Configure.pm $(DESTDIR)$(INSTALL_PERL_DIR)/UCW
install -m 644 $(addprefix $(s)/ucw/perl/UCW/Configure/,$(UCW_CONFIGURE_PERL_MODULES)) $(DESTDIR)$(INSTALL_PERL_DIR)/UCW/Configure
.PHONY: install-perl-ucw-configure
DIRS+=ucw/perl/UCW
EXTRA_RUNDIRS+=lib/perl5/UCW
-UCW_PERL_MODULES=$(addsuffix .pm,Config Log CGI Configure)
+UCW_PERL_MODULES=$(addsuffix .pm,Config Log CGI)
+# XXX: Configure.pm omitted intentionally, see install-perl-ucw-configure
PROGS+=$(addprefix $(o)/ucw/perl/UCW/,$(UCW_PERL_MODULES))
include $(s)/ucw/perl/UCW/CGI/Makefile