# We will use the libucw build system
include $(s)/build/Maketop
+# Install the build system
+include $(s)/build/Makefile
+
# The UCW library
include $(s)/ucw/Makefile
INSTALL_TARGETS+=install-configs
install-configs:
install -d -m 755 $(DESTDIR)$(INSTALL_CONFIG_DIR)
- install -m 644 $(addprefix run/cf/,$(FREE_CONFIGS)) $(DESTDIR)$(INSTALL_CONFIG_DIR)
+ install -m 644 $(addprefix run/$(CONFIG_DIR)/,$(FREE_CONFIGS)) $(DESTDIR)$(INSTALL_CONFIG_DIR)
# Set up names of common libraries (to avoid forward references in rules)
LIBCHARSET=$(o)/charset/libcharset.pc
endif
+# Build documentation by default?
+ifdef CONFIG_DOC
+all: docs
+endif
+
libs: $(LIBUCW) $(LIBSH) $(LIBIMAGES) $(LIBCHARSET) $(LIBLANG)
# And finally the default rules of the build system