]> mj.ucw.cz Git - libucw.git/blobdiff - free/libs/Makefile
Build: Renamed BUILDSYS_PATH to BUILDSYS to make it consistent with the rest.
[libucw.git] / free / libs / Makefile
index afd3d6f09391f297d65f1af73c56a4a424caa344..c08913f8a3f22f12e98a39f925d17ba67fff5094 100644 (file)
@@ -10,8 +10,13 @@ s=.
 obj/config.mk:
        @echo "You need to run configure first." && false
 
 obj/config.mk:
        @echo "You need to run configure first." && false
 
+BUILDSYS=$(s)/build
+
 # We will use the libucw build system
 # We will use the libucw build system
-include $(s)/build/Maketop
+include $(BUILDSYS)/Maketop
+
+# Install the build system
+include $(BUILDSYS)/Makefile
 
 # The UCW library
 include $(s)/ucw/Makefile
 
 # The UCW library
 include $(s)/ucw/Makefile
@@ -26,7 +31,7 @@ CONFIGS+=$(FREE_CONFIGS)
 INSTALL_TARGETS+=install-configs
 install-configs:
        install -d -m 755 $(DESTDIR)$(INSTALL_CONFIG_DIR)
 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
 
 # Set up names of common libraries (to avoid forward references in rules)
 LIBCHARSET=$(o)/charset/libcharset.pc
@@ -49,10 +54,15 @@ endif
 
 endif
 
 
 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
 libs: $(LIBUCW) $(LIBSH) $(LIBIMAGES) $(LIBCHARSET) $(LIBLANG)
 
 # And finally the default rules of the build system
-include $(s)/build/Makebottom
+include $(BUILDSYS)/Makebottom
 
 ifndef CONFIG_LOCAL
 install: all $(INSTALL_TARGETS)
 
 ifndef CONFIG_LOCAL
 install: all $(INSTALL_TARGETS)