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
17 include $(s)/ucw/Makefile
19 # Stripped down version
20 ifndef CONFIG_UCW_ONLY
22 # Install config files
23 FREE_CONFIGS=sherlock local
24 CONFIGS+=$(FREE_CONFIGS)
26 INSTALL_TARGETS+=install-configs
28 install -d -m 755 $(DESTDIR)$(INSTALL_CONFIG_DIR)
29 install -m 644 $(addprefix run/cf/,$(FREE_CONFIGS)) $(DESTDIR)$(INSTALL_CONFIG_DIR)
31 # Set up names of common libraries (to avoid forward references in rules)
32 LIBCHARSET=$(o)/charset/libcharset.pc
33 LIBSH=$(o)/sherlock/libsh.pc
34 LIBSHXML=$(o)/sherlock/xml/libshxml.pc
36 # Include makefiles of libraries we wish to use
37 include $(s)/charset/Makefile
38 include $(s)/sherlock/Makefile
41 LIBLANG=$(o)/lang/liblang.pc
42 include $(s)/lang/Makefile
46 LIBIMAGES=$(o)/images/libimages.pc
47 include $(s)/images/Makefile
52 # Build documentation by default?
57 libs: $(LIBUCW) $(LIBSH) $(LIBIMAGES) $(LIBCHARSET) $(LIBLANG)
59 # And finally the default rules of the build system
60 include $(s)/build/Makebottom
63 install: all $(INSTALL_TARGETS)
66 @echo "Nothing to install, this is a local build." && false