changeset 880:2de825c0df6c

Fix obscure "make install" problem, $(bindir) may not exist yet so needs to be created
author bartv
date Thu, 27 Mar 2003 23:17:24 +0000
parents 8122b0a3018b
children d6a1854fdc1b
files packages/io/usb/slave/current/ChangeLog packages/io/usb/slave/current/host/Makefile.am packages/io/usb/slave/current/host/Makefile.in
diffstat 3 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/packages/io/usb/slave/current/ChangeLog
+++ b/packages/io/usb/slave/current/ChangeLog
@@ -1,3 +1,8 @@
+2003-03-27  Bart Veer  <bartv@ecoscentric.com>
+
+	* host/Makefile.am, host/Makefile.in:
+	$(bindir) may not exist yet, so create it if necessary.
+
 2003-02-25  Jonathan Larmour  <jifl@eCosCentric.com>
 
 	* doc/usbs.sgml: Declare as <part> not <reference> to get
--- a/packages/io/usb/slave/current/host/Makefile.am
+++ b/packages/io/usb/slave/current/host/Makefile.am
@@ -92,6 +92,7 @@ usbchmod_SOURCES	= usbchmod.c
 ##    the new executable.
 ## 2) usbchmod needs to be suid root
 install-exec-hook:
+	$(mkinstalldirs) $(bindir)
 	$(INSTALL_PROGRAM) usbhost $(bindir)/usbhost_@PACKAGE_VERSION@
 	rm -f $(bindir)/usbhost
 	$(LN_S) $(bindir)/usbhost_@PACKAGE_VERSION@ $(bindir)/usbhost
--- a/packages/io/usb/slave/current/host/Makefile.in
+++ b/packages/io/usb/slave/current/host/Makefile.in
@@ -443,6 +443,7 @@ mostlyclean distclean maintainer-clean
 
 
 @SUPPORTED_TRUE@install-exec-hook:
+@SUPPORTED_TRUE@	$(mkinstalldirs) $(bindir)
 @SUPPORTED_TRUE@	$(INSTALL_PROGRAM) usbhost $(bindir)/usbhost_@PACKAGE_VERSION@
 @SUPPORTED_TRUE@	rm -f $(bindir)/usbhost
 @SUPPORTED_TRUE@	$(LN_S) $(bindir)/usbhost_@PACKAGE_VERSION@ $(bindir)/usbhost