summaryrefslogtreecommitdiff
blob: bf31c9c248bf0068d27ffc9302e7951a412ce2de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- Makefile.in
+++ Makefile.in
@@ -58,6 +58,11 @@
 inst_libdir:=$(libdir)
 inst_docdir:=$(prefix)/doc/mingw-runtime
 endif
+inst_bindir:=$(DESTDIR)$(inst_bindir)
+inst_includedir:=$(DESTDIR)$(inst_includedir)
+inst_libdir:=$(DESTDIR)$(inst_libdir)
+inst_docdir:=$(DESTDIR)$(inst_docdir)
+mandir:=$(DESTDIR)$(mandir)
 
 # The Mingw headers are installed under a subdirectory of 
 # $(tooldir)/include when configuring in Cygwin.
@@ -199,6 +199,6 @@
 all_dlls_host: $(DLLS)
 
-install_dlls_host:
+install_dlls_host: install-dirs
 	for i in $(DLLS); do \
 		$(INSTALL_PROGRAM) $$i $(inst_bindir)/$$i ; \
 	done