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
21 ifndef CONFIG_UCW_ONLY
22 # Set up names of common libraries (to avoid forward references in rules)
23 LIBCHARSET=$(o)/charset/libcharset.pc
24 LIBSH=$(o)/sherlock/libsh.pc
25 LIBSHXML=$(o)/sherlock/xml/libshxml.pc
29 include $(s)/ucw/Makefile
31 # Stripped down version
32 ifndef CONFIG_UCW_ONLY
36 # Install config files
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)
45 # Include makefiles of libraries we wish to use
46 include $(s)/charset/Makefile
47 include $(s)/sherlock/Makefile
50 LIBLANG=$(o)/lang/liblang.pc
51 include $(s)/lang/Makefile
55 LIBIMAGES=$(o)/images/libimages.pc
56 include $(s)/images/Makefile
61 # Build documentation by default?
66 libs: $(LIBUCW) $(LIBSH) $(LIBIMAGES) $(LIBCHARSET) $(LIBLANG)
68 # And finally the default rules of the build system
69 include $(BUILDSYS)/Makebottom
72 install: all $(INSTALL_TARGETS)
75 @echo "Nothing to install, this is a local build." && false