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