about summary refs log tree commit diff
path: root/Makefile.lib
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.lib')
-rw-r--r--Makefile.lib14
1 files changed, 13 insertions, 1 deletions
diff --git a/Makefile.lib b/Makefile.lib
index b9114a07c0b1..cacf921052e8 100644
--- a/Makefile.lib
+++ b/Makefile.lib
@@ -3,11 +3,23 @@ default: all
 
 # Include Autoconf variables.
 Makefile.config: Makefile.config.in
-	./config.status
+	./config.status --file $@
 
 include Makefile.config
 
 
+# Installing stuff.
+define install-file-in =
+
+  install:: $(1)/$(notdir $(2))
+
+  $(1)/$(notdir $(2)): $(2)
+	install -d $(1)
+	install -t $(1) $(2)
+
+endef
+
+
 # Include all sub-Makefiles.
 define include_sub_makefile =
   d := $$(patsubst %/, %, $$(dir $(1)))