1 # Makefile for the stand-alone release of Sherlock libraries
2 # (c) 2007 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
13 # We will use the libucw build system
14 include $(s)/build/Maketop
16 # Install the build system
17 include $(s)/build/Makefile
20 include $(s)/ucw/Makefile
22 # Stripped down version
23 ifndef CONFIG_UCW_ONLY
25 # Install config files
26 FREE_CONFIGS=sherlock local
27 CONFIGS+=$(FREE_CONFIGS)
29 INSTALL_TARGETS+=install-configs
31 install -d -m 755 $(DESTDIR)$(INSTALL_CONFIG_DIR)
32 install -m 644 $(addprefix run/$(CONFIG_DIR)/,$(FREE_CONFIGS)) $(DESTDIR)$(INSTALL_CONFIG_DIR)
34 # Set up names of common libraries (to avoid forward references in rules)
35 LIBCHARSET=$(o)/charset/libcharset.pc
36 LIBSH=$(o)/sherlock/libsh.pc
37 LIBSHXML=$(o)/sherlock/xml/libshxml.pc
39 # Include makefiles of libraries we wish to use
40 include $(s)/charset/Makefile
41 include $(s)/sherlock/Makefile
44 LIBLANG=$(o)/lang/liblang.pc
45 include $(s)/lang/Makefile
49 LIBIMAGES=$(o)/images/libimages.pc
50 include $(s)/images/Makefile
55 # Build documentation by default?
60 libs: $(LIBUCW) $(LIBSH) $(LIBIMAGES) $(LIBCHARSET) $(LIBLANG)
62 # And finally the default rules of the build system
63 include $(s)/build/Makebottom
66 install: all $(INSTALL_TARGETS)
69 @echo "Nothing to install, this is a local build." && false