1 # Makefile for the UCW libraries
2 # (c) 2007--2010 Martin Mares <mj@ucw.cz>
5 all: runtree libs api programs extras configs
7 # Include configuration
11 @echo "You need to run configure first." && false
15 # We will use the libucw build system
16 include $(BUILDSYS)/Maketop
19 TESTING_DEPS=$(LIBUCW)
21 # Install the build system
22 include $(BUILDSYS)/Makefile
24 # Set up names of common libraries (to avoid forward references in rules)
26 LIBCHARSET=$(o)/charset/libucw-charset.pc
30 include $(s)/ucw/Makefile
32 # Install config files
33 ifdef CONFIG_SHERLOCK_LIB
34 FREE_CONFIGS=sherlock local
35 CONFIGS+=$(FREE_CONFIGS)
37 INSTALL_TARGETS+=install-configs
39 install -d -m 755 $(DESTDIR)$(INSTALL_CONFIG_DIR)
40 install -m 644 $(addprefix run/$(CONFIG_DIR)/,$(FREE_CONFIGS)) $(DESTDIR)$(INSTALL_CONFIG_DIR)
43 # Include submakefiles of requested libraries
45 include $(s)/charset/Makefile
49 LIBIMAGES=$(o)/images/libucw-images.pc
50 include $(s)/images/Makefile
54 LIBXML=$(o)/xml/libucw-xml.pc
55 include $(s)/xml/Makefile
58 # Build documentation by default?
63 libs: $(LIBUCW) $(LIBXML) $(LIBIMAGES) $(LIBCHARSET)
65 # And finally the default rules of the build system
66 include $(BUILDSYS)/Makebottom
69 install: all $(INSTALL_TARGETS)
72 @echo "Nothing to install, this is a local build." && false