X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=build%2FMakefile;h=54698d2f09ea0fa6ac742a800b22a79683af194f;hb=bfca2c42bc0e749f8611339568be502f22ac5e9c;hp=4544625ad4e798aefb1bbff6c8747f3c8143030a;hpb=28dd12783efc8082748bf1eb391156b62f4d9b55;p=libucw.git diff --git a/build/Makefile b/build/Makefile index 4544625a..54698d2f 100644 --- a/build/Makefile +++ b/build/Makefile @@ -2,4 +2,18 @@ DIRS+=build -obj/build/genhash: obj/build/genhash.o +$(o)/build/genhash: $(o)/build/genhash.o + +# This is a hack which compensates make's desires for propagating per-rule settings +# of variables: if some module specifies its own LIBS and it depends on genhash, +# genhash is sometimes built with the module's LIBS (if it isn't already built). +# A proper solution would be using a different rule for linking build/*, but +# as it currently concerns only genhash, it's easier to battle this way. +$(o)/build/genhash: LIBS= + +INSTALL_TARGETS+=install-build +install-build: + install -d -m 755 $(DESTDIR)$(INSTALL_SHARE_DIR)/ucw/build + install -m 755 $(addprefix $(BUILDSYS)/,install-includes doc-defs doc-extract genconf mergedeps tester lib-deps lib-flags) $(DESTDIR)$(INSTALL_SHARE_DIR)/ucw/build + install -m 644 $(addprefix $(BUILDSYS)/,asciidoc.conf asciidoc-xhtml.conf Makebottom Maketop) $(DESTDIR)$(INSTALL_SHARE_DIR)/ucw/build +.PHONY: install-build