X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=free%2Flibs%2FMakefile;h=5690e9cd72d05094cab0b35a62ce7ec50ac26acc;hb=ca1e06ed14e04fe2bcff4dca15cdea1e65a5ab65;hp=09f2c02cd9bbd2f6e98b864894589f07abe3ce20;hpb=86b74f27a95b617008575a9088e4c675e9f956d6;p=libucw.git diff --git a/free/libs/Makefile b/free/libs/Makefile index 09f2c02c..5690e9cd 100644 --- a/free/libs/Makefile +++ b/free/libs/Makefile @@ -20,11 +20,18 @@ include $(s)/ucw/Makefile ifndef CONFIG_UCW_ONLY # Install config files -CONFIGS+=sherlock local +FREE_CONFIGS=sherlock local +CONFIGS+=$(FREE_CONFIGS) + +INSTALL_TARGETS+=install-configs +install-configs: + install -d -m 755 $(DESTDIR)$(INSTALL_CONFIG_DIR) + install -m 644 $(addprefix run/cf/,$(FREE_CONFIGS)) $(DESTDIR)$(INSTALL_CONFIG_DIR) # Set up names of common libraries (to avoid forward references in rules) LIBCHARSET=$(o)/charset/libcharset.pc LIBSH=$(o)/sherlock/libsh.pc +LIBSHXML=$(o)/sherlock/xml/libshxml.pc # Include makefiles of libraries we wish to use include $(s)/charset/Makefile @@ -42,13 +49,18 @@ endif endif +# Build documentation by default? +ifdef CONFIG_DOC +all: docs +endif + libs: $(LIBUCW) $(LIBSH) $(LIBIMAGES) $(LIBCHARSET) $(LIBLANG) # And finally the default rules of the build system include $(s)/build/Makebottom ifndef CONFIG_LOCAL -install: $(INSTALL_TARGETS) +install: all $(INSTALL_TARGETS) else install: @echo "Nothing to install, this is a local build." && false