This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

USB slave package, host-side Makefile.am tweak


This fixes a minor problem - when you run "make install", $(bindir)
may not yet exist. The package has a host-side executable which ends
up in $(bindir) but a special build rule is needed, hence the use of
an install-exec-hook rather than the usual bin_PROGRAMS which would
automatically create $(bindir) for us.

Bart

2003-03-27  Bart Veer  <bartv at ecoscentric dot com>

	* host/Makefile.am, host/Makefile.in:
	$(bindir) may not exist yet, so create it if necessary.

Index: Makefile.am
===================================================================
RCS file: /cvs/ecos/ecos/packages/io/usb/slave/current/host/Makefile.am,v
retrieving revision 1.2
diff -u -u -r1.2 Makefile.am
--- Makefile.am	11 Aug 2002 21:46:35 -0000	1.2
+++ Makefile.am	27 Mar 2003 23:13:33 -0000
@@ -92,6 +92,7 @@
 ##    the new executable.
 ## 2) usbchmod needs to be suid root
 install-exec-hook:
+	$(mkinstalldirs) $(bindir)
 	$(INSTALL_PROGRAM) usbhost $(bindir)/usbhost_ at PACKAGE_VERSION@
 	rm -f $(bindir)/usbhost
 	$(LN_S) $(bindir)/usbhost_ at PACKAGE_VERSION@ $(bindir)/usbhost


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]