include $(BUILDSYS)/Makebottom
ifndef CONFIG_LOCAL
-install: all $(INSTALL_TARGETS) install-libs install-api install-configs install-utils
-
-install-libs: $(INSTALL_LIB_TARGETS)
-install-api: $(INSTALL_API_TARGETS)
- /sbin/ldconfig -n $(DESTDIR)$(INSTALL_LIB_DIR)
-install-configs: $(INSTALL_CONFIG_TARGETS)
-install-utils: $(INSTALL_UTILS_TARGETS)
-.PHONY: install-libs install-api install-configs install-utils
+install: all $(INSTALL_TARGETS)
+ #/sbin/ldconfig -n $(DESTDIR)$(INSTALL_LIB_DIR)
else
install:
@echo "Nothing to install, this is a local build." && false
clean::
rm -f $(s)/charset/misc/u-*
-INSTALL_LIB_TARGETS+=install-libucw-charset-lib
+INSTALL_TARGETS+=install-libucw-charset-lib
install-libucw-charset-lib:
install -d -m 755 $(DESTDIR)$(INSTALL_LIB_DIR)
install -m 644 run/lib/libucw-charset.so.$(UCW_ABI_MAJOR) $(DESTDIR)$(INSTALL_LIB_DIR)/libucw-charset.so.$(UCW_ABI_VERSION)
.PHONY: install-libucw-charset-lib
-INSTALL_API_TARGETS+=install-libucw-charset-api
+INSTALL_TARGETS+=install-libucw-charset-api
install-libucw-charset-api:
install -d -m 755 $(DESTDIR)$(INSTALL_INCLUDE_DIR)/charset $(DESTDIR)$(INSTALL_LIB_DIR) $(DESTDIR)$(INSTALL_PKGCONFIG_DIR)
install -m 644 $(addprefix run/include/charset/,$(LIBCHARSET_INCLUDES)) $(DESTDIR)$(INSTALL_INCLUDE_DIR)/charset
install -m 644 run/lib/libucw-charset-pic.a $(DESTDIR)$(INSTALL_LIB_DIR)
.PHONY: install-libucw-charset-api
-INSTALL_UTILS_TARGETS+=install-libucw-charset-utils
+INSTALL_TARGETS+=install-libucw-charset-utils
install-libucw-charset-utils:
install -d -m 755 $(DESTDIR)$(INSTALL_BIN_DIR)
install -m 755 $(LIBCHARSET_PROGS) $(DESTDIR)$(INSTALL_BIN_DIR)
Section: libs
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
-Description: LibUCW libraries
+Description: LibUCW library
Package: libucw-dev
Section: libdevel
Architecture: all
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: LibUCW documentation
+
+Package: libucw-charset-@UCW_ABI_MAJOR@
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: LibUCW charset library
+
+Package: libucw-charset-dev
+Section: libdevel
+Architecture: any
+Depends: libucw-charset-@UCW_ABI_MAJOR@ (= @VER@), ${shlibs:Depends}, ${misc:Depends}
+Description: LibUCW charset development files
+
+Package: libucw-charset-utils
+Section: misc
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: LibUCW charset utilities
+
+Package: libucw-xml-@UCW_ABI_MAJOR@
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: LibUCW XML parser library
+
+Package: libucw-xml-dev
+Section: libdevel
+Architecture: any
+Depends: libucw-xml-@UCW_ABI_MAJOR@ (= @VER@), ${shlibs:Depends}, ${misc:Depends}
+Description: LibUCW XML parser development files
+
+Package: libucw-images-@UCW_ABI_MAJOR@
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: LibUCW image library
+
+Package: libucw-images-dev
+Section: libdevel
+Architecture: any
+Depends: libucw-images-@UCW_ABI_MAJOR@ (= @VER@), ${shlibs:Depends}, ${misc:Depends}
+Description: LibUCW image development files
+
+Package: libucw-images-utils
+Section: misc
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: LibUCW image utilities
+
dh_testroot
dh_clean -k
dh_installdirs
- $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-$(UCW_ABI_MAJOR) install-libs
- $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-dev install-api
- $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-utils install-utils
- $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-doc install-libucw-docs
- $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-doc install-configs
+ $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-$(UCW_ABI_MAJOR) install-libucw-lib
+ $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-dev install-libucw-api
+ $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-utils install-ucw-shell install-ucw-utils
+ $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-doc install-libucw-docs install-libucw-config
install -d -m 755 $(CURDIR)/debian/libucw-doc/usr/share/doc/libucw/examples
cp -r examples/external $(CURDIR)/debian/libucw-doc/usr/share/doc/libucw/examples/program
+ $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-charset-$(UCW_ABI_MAJOR) install-libucw-charset-lib
+ $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-charset-dev install-libucw-charset-api
+ $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-charset-utils install-libucw-charset-utils
+ $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-xml-$(UCW_ABI_MAJOR) install-libucw-xml-lib
+ $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-xml-dev install-libucw-xml-api
+ $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-images-$(UCW_ABI_MAJOR) install-libucw-images-lib
+ $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-images-dev install-libucw-images-api
+ $(MAKE) DESTDIR=$(CURDIR)/debian/libucw-images-utils install-libucw-images-utils
binary-indep: build install
$(o)/images/.include-stamp: IDST=images
run/lib/pkgconfig/libucw-images.pc: $(o)/images/libucw-images.pc
-INSTALL_LIB_TARGETS+=install-libucw-images-lib
+INSTALL_TARGETS+=install-libucw-images-lib
install-libucw-images-lib:
install -d -m 755 $(DESTDIR)$(INSTALL_LIB_DIR)
install -m 644 run/lib/libucw-images.so.$(UCW_ABI_MAJOR) $(DESTDIR)$(INSTALL_LIB_DIR)/libucw-images.so.$(UCW_ABI_VERSION)
.PHONY: install-libucw-images-lib
-INSTALL_API_TARGETS+=install-libucw-images-api
+INSTALL_TARGETS+=install-libucw-images-api
install-libucw-images-api:
install -d -m 755 $(addprefix $(DESTDIR),$(INSTALL_INCLUDE_DIR)/images $(INSTALL_LIB_DIR) $(INSTALL_PKGCONFIG_DIR))
install -m 644 $(addprefix run/include/images/,$(LIBIMAGES_INCLUDES)) $(DESTDIR)$(INSTALL_INCLUDE_DIR)/images
install -m 644 run/lib/libucw-images-pic.a $(DESTDIR)$(INSTALL_LIB_DIR)
.PHONY: install-libucw-images-api
-INSTALL_UTILS_TARGETS+=install-libucw-images-utils
+INSTALL_TARGETS+=install-libucw-images-utils
install-libucw-images-utils:
install -d -m 755 $(DESTDIR)$(INSTALL_BIN_DIR)
install -m 755 $(LIBIMAGES_PROGS) $(DESTDIR)$(INSTALL_BIN_DIR)
.PHONY: install-libucw-images-utils
-INSTALL_CONFIG_TARGETS+=install-libucw-images-config
+INSTALL_TARGETS+=install-libucw-images-config
install-libucw-images-config:
install -d -m 755 $(DESTDIR)$(INSTALL_CONFIG_DIR)
install -m 644 $(addprefix run/$(CONFIG_DIR)/,$(LIBIMAGES_CONFIGS)) $(DESTDIR)$(INSTALL_CONFIG_DIR)
CONFIGS+=libucw
-INSTALL_LIB_TARGETS+=install-libucw-lib
+INSTALL_TARGETS+=install-libucw-lib
install-libucw-lib:
install -d -m 755 $(DESTDIR)$(INSTALL_LIB_DIR)
install -m 644 run/lib/libucw.so.$(UCW_ABI_MAJOR) $(DESTDIR)$(INSTALL_LIB_DIR)/libucw.so.$(UCW_ABI_VERSION)
.PHONY: install-libucw-lib
-INSTALL_API_TARGETS+=install-libucw-api
+INSTALL_TARGETS+=install-libucw-api
install-libucw-api:
install -d -m 755 $(DESTDIR)$(INSTALL_LIB_DIR) $(DESTDIR)$(INSTALL_INCLUDE_DIR)/ucw/ $(DESTDIR)$(INSTALL_PKGCONFIG_DIR)
install -m 644 $(addprefix run/include/ucw/,$(LIBUCW_MAIN_INCLUDES) autoconf.h config.h) $(DESTDIR)$(INSTALL_INCLUDE_DIR)/ucw/
install -m 644 run/lib/libucw-pic.a $(DESTDIR)$(INSTALL_LIB_DIR)
.PHONY: install-libucw-api
-INSTALL_CONFIG_TARGETS+=install-libucw-config
+INSTALL_TARGETS+=install-libucw-config
install-libucw-config:
install -d -m 755 $(DESTDIR)$(INSTALL_CONFIG_DIR)
install -m 644 run/$(CONFIG_DIR)/libucw $(DESTDIR)$(INSTALL_CONFIG_DIR)
$(o)/ucw/shell/config.test: $(o)/ucw/shell/ucw-config
-INSTALL_UTILS_TARGETS+=install-ucw-shell
+INSTALL_TARGETS+=install-ucw-shell
install-ucw-shell:
install -d -m 755 $(DESTDIR)$(INSTALL_BIN_DIR)
install -m 755 $(UCW_SHELL_PROGS) $(DESTDIR)$(INSTALL_BIN_DIR)
TESTS+=$(o)/ucw/utils/basecode.test
$(o)/ucw/utils/basecode.test: $(o)/ucw/utils/ucw-basecode
-INSTALL_UTILS_TARGETS+=install-ucw-utils
+INSTALL_TARGETS+=install-ucw-utils
install-ucw-utils:
install -d -m 755 $(DESTDIR)$(INSTALL_BIN_DIR)
install -m 755 $(UCW_UTILS) $(DESTDIR)$(INSTALL_BIN_DIR)
$(o)/xml/.include-stamp: IDST=xml
run/lib/pkgconfig/libucw-xml.pc: $(o)/xml/libucw-xml.pc
-INSTALL_LIB_TARGETS+=install-libucw-xml-lib
+INSTALL_TARGETS+=install-libucw-xml-lib
install-libucw-xml-lib:
install -d -m 755 $(DESTDIR)$(INSTALL_LIB_DIR)
install -m 644 run/lib/libucw-xml.so.$(UCW_ABI_MAJOR) $(DESTDIR)$(INSTALL_LIB_DIR)/libucw-xml.so.$(UCW_ABI_VERSION)
.PHONY: install-libucw-xml-lib
-INSTALL_API_TARGETS+=install-libucw-xml-api
+INSTALL_TARGETS+=install-libucw-xml-api
install-libucw-xml-api:
install -d -m 755 $(DESTDIR)$(INSTALL_INCLUDE_DIR)/xml $(DESTDIR)$(INSTALL_LIB_DIR) $(DESTDIR)$(INSTALL_PKGCONFIG_DIR)
install -m 644 run/lib/pkgconfig/libucw-xml.pc $(DESTDIR)$(INSTALL_PKGCONFIG_DIR)