[Libosinfo] [libosinfo 2/3] build: More portable symlink creation

Christophe Fergeau cfergeau at redhat.com
Wed Mar 27 11:32:54 UTC 2013


Follow the recommendations from
http://www.nondot.org/sabre/Mirrored/autoconf-2.12/autoconf_4.html#IDX111
regarding symlink creation.
---
 data/Makefile.am | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/data/Makefile.am b/data/Makefile.am
index 37d7e30..cfe1f6d 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -11,7 +11,7 @@ usb.ids:
 	-wget -q -O $@ http://www.linux-usb.org/usb.ids
 else
 usb_ids_install:
-	$(LN_S) $(USB_IDS) $(DESTDIR)$(pkgdatadir)/db/usb.ids
+	(cd $(DESTDIR)$(pkgdatadir)/db/ && $(LN_S) $(USB_IDS) usb.ids)
 INSTALL_DATA_HOOK_DEPS += usb_ids_install
 endif
 
@@ -22,7 +22,7 @@ pci.ids:
 	-wget -q -O $@ http://pciids.sourceforge.net/v2.2/pci.ids
 else
 pci_ids_install:
-	$(LN_S) $(PCI_IDS) $(DESTDIR)$(pkgdatadir)/db/pci.ids
+	(cd $(DESTDIR)$(pkgdatadir)/db/ && $(LN_S) $(PCI_IDS) pci.ids)
 INSTALL_DATA_HOOK_DEPS += pci_ids_install
 endif
 
-- 
1.8.1.4




More information about the Libosinfo mailing list