]> mj.ucw.cz Git - libucw.git/commitdiff
Install the build system
authorMichal Vaner <vorner@ucw.cz>
Sun, 9 Nov 2008 15:08:46 +0000 (16:08 +0100)
committerMichal Vaner <vorner@ucw.cz>
Sun, 9 Nov 2008 15:08:46 +0000 (16:08 +0100)
build/Makefile
free/libs/Makefile

index 15bafe723ae0f65f66c1e4c46051f5d3f4cc14be..a5ac83a0b006d4ca14c872a9c2c070a79f934210 100644 (file)
@@ -10,3 +10,10 @@ $(o)/build/genhash: $(o)/build/genhash.o
 # 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 $(s)/build/,install-includes doc-defs doc-extract genconf mergedeps tester lib-deps lib-flags) $(DESTDIR)$(INSTALL_SHARE_DIR)/ucw/build
+       install -m 644 $(addprefix $(s)/build/,asciidoc.conf asciidoc-xhtml.conf Makebottom Maketop) $(DESTDIR)$(INSTALL_SHARE_DIR)/ucw/build
+.PHONY: install-build
index 8c5494b3c7f53c9e376eb48158b4354b3a063efb..585445652ec60906c3503fa890da08e26900220a 100644 (file)
@@ -13,6 +13,9 @@ obj/config.mk:
 # We will use the libucw build system
 include $(s)/build/Maketop
 
+# Install the build system
+include $(s)/build/Makefile
+
 # The UCW library
 include $(s)/ucw/Makefile