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/libcharset.pc
29 LIBSHXML=$(o)/shxml/libshxml.pc
33 include $(s)/ucw/Makefile
35 # Install config files
36 ifdef CONFIG_SHERLOCK_LIB
37 FREE_CONFIGS=sherlock local
38 CONFIGS+=$(FREE_CONFIGS)
40 INSTALL_TARGETS+=install-configs
42 install -d -m 755 $(DESTDIR)$(INSTALL_CONFIG_DIR)
43 install -m 644 $(addprefix run/$(CONFIG_DIR)/,$(FREE_CONFIGS)) $(DESTDIR)$(INSTALL_CONFIG_DIR)
46 # Include submakefiles of requested libraries
48 include $(s)/charset/Makefile
52 LIBIMAGES=$(o)/images/libimages.pc
53 include $(s)/images/Makefile
56 # Build documentation by default?
61 libs: $(LIBUCW) $(LIBSHXML) $(LIBIMAGES) $(LIBCHARSET)
63 # And finally the default rules of the build system
64 include $(BUILDSYS)/Makebottom
67 install: all $(INSTALL_TARGETS)
70 @echo "Nothing to install, this is a local build." && false