wineprefixcreate and related files need to be installed when doing an
install-lib.

diff --git a/Makefile.in b/Makefile.in
index cf3ad2f..9aee218 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -49,10 +49,10 @@
 	server
 
 # Sub-directories to install for install-dev
-INSTALLDEVSUBDIRS = include tools
+INSTALLDEVSUBDIRS = include
 
 # Sub-directories to install for both install-lib and install-dev
-INSTALLBOTHSUBDIRS = dlls libs
+INSTALLBOTHSUBDIRS = dlls libs tools
 
 INSTALLSUBDIRS = $(INSTALLDEVSUBDIRS) $(INSTALLLIBSUBDIRS)
 
@@ -119,7 +119,7 @@
 libs/__install-lib__ libs/__install-dev__: libs
 fonts/__install__ loader/__install__ server/__install__: libs tools
 programs/__install__: libs tools include dlls/__install-lib__
-tools/__install__: tools
+tools/__install-lib__ tools/__install-dev__: tools
 
 $(SUBDIRS:%=%/__depend__): tools include
 
diff --git a/tools/Makefile.in b/tools/Makefile.in
index 8b3b300..fe08006 100644
--- a/tools/Makefile.in
+++ b/tools/Makefile.in
@@ -59,15 +59,18 @@
 	sed -e 's,@dlldir\@,$(dlldir),g' -e 's,@datadir\@,$(datadir),g' $(SRCDIR)/wineprefixcreate.in >$@ || ($(RM) $@ && false)
 	chmod +x wineprefixcreate
 
-install:: wineprefixcreate
-	$(MKINSTALLDIRS) $(bindir) $(mandir)/man$(prog_manext) $(datadir)/wine $(datadir)/applications
-	$(INSTALL_SCRIPT) $(SRCDIR)/winemaker $(bindir)/winemaker
+install install-lib:: wineprefixcreate
+	$(MKINSTALLDIRS) $(bindir) $(datadir)/wine $(datadir)/applications
 	$(INSTALL_SCRIPT) wineprefixcreate $(bindir)/wineprefixcreate
-	$(INSTALL_DATA) $(SRCDIR)/winemaker.man $(mandir)/man$(prog_manext)/winemaker.$(prog_manext)
 	$(INSTALL_DATA) $(SRCDIR)/wine.inf $(datadir)/wine/wine.inf
 	$(INSTALL_DATA) $(SRCDIR)/wine.desktop $(datadir)/applications/wine.desktop
 	-$(UPDATE_DESKTOP_DATABASE)
 
+install install-dev:: $(INSTALLSUBDIRS:%=%/__install__)
+	$(MKINSTALLDIRS) $(bindir) $(mandir)/man$(prog_manext)
+	$(INSTALL_SCRIPT) $(SRCDIR)/winemaker $(bindir)/winemaker
+	$(INSTALL_DATA) $(SRCDIR)/winemaker.man $(mandir)/man$(prog_manext)/winemaker.$(prog_manext)
+
 uninstall::
 	$(RM) $(bindir)/winemaker $(bindir)/wineprefixcreate $(mandir)/man$(prog_manext)/winemaker.$(prog_manext) \
 	      $(datadir)/wine/wine.inf $(datadir)/applications/wine.desktop