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
20 # Install the build system
21 include $(BUILDSYS)/Makefile
23 # Set up names of common libraries (to avoid forward references in rules)
25 LIBCHARSET=$(o)/charset/libcharset.pc
27 ifdef CONFIG_SHERLOCK_LIB
28 LIBSH=$(o)/sherlock/libsh.pc
29 LIBSHXML=$(o)/sherlock/xml/libshxml.pc
32 TESTING_DEPS=$(LIBUCW)
36 include $(s)/ucw/Makefile
38 # Install config files
39 ifdef CONFIG_SHERLOCK_LIB
40 FREE_CONFIGS=sherlock local
41 CONFIGS+=$(FREE_CONFIGS)
43 INSTALL_TARGETS+=install-configs
45 install -d -m 755 $(DESTDIR)$(INSTALL_CONFIG_DIR)
46 install -m 644 $(addprefix run/$(CONFIG_DIR)/,$(FREE_CONFIGS)) $(DESTDIR)$(INSTALL_CONFIG_DIR)
49 # Include submakefiles of requested libraries
50 ifdef CONFIG_SHERLOCK_LIB
51 include $(s)/sherlock/Makefile
55 include $(s)/charset/Makefile
59 LIBLANG=$(o)/lang/liblang.pc
60 include $(s)/lang/Makefile
64 LIBIMAGES=$(o)/images/libimages.pc
65 include $(s)/images/Makefile
68 # Build documentation by default?
73 libs: $(LIBUCW) $(LIBSH) $(LIBIMAGES) $(LIBCHARSET) $(LIBLANG)
75 # And finally the default rules of the build system
76 include $(BUILDSYS)/Makebottom
79 install: all $(INSTALL_TARGETS)
82 @echo "Nothing to install, this is a local build." && false