summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2006-03-27 11:55:14 +0100
committerDominik Brodowski <linux@dominikbrodowski.net>2006-03-31 18:22:21 +0200
commitfbe45041187ceb738f17e74fe033d48161ecefb2 (patch)
treefc09457536aadb79ca9d8b1ffa5b31a4f8121e7d
parent7e9befa9a3f97e635361f11366cad3a5ce4082e5 (diff)
downloadpcmciautils-fbe45041187ceb738f17e74fe033d48161ecefb2.tar.gz
[PATCH] lspcmcia symlink target is wrong if building with DESTDIR
The lspcmcia symlink is created to $(DESTDIR)$(sbindir)/$(PCCARDCTL); if you're building with DESTDIR set to a temporary directory in order to build a binary package for a distribution (which is basically what DESTDIR is meant for), the symlink in the package ends up pointing into your build tree. Since lspcmcia and pccardctl are installed to the same directory anyway, this patch just makes the symlink be relative. Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7cf5ea8..198e0c7 100644
--- a/Makefile
+++ b/Makefile
@@ -280,7 +280,7 @@ install-tools:
$(INSTALL) -d $(DESTDIR)$(sbindir)
$(INSTALL_PROGRAM) -D $(PCCARDCTL) $(DESTDIR)$(sbindir)/$(PCCARDCTL)
$(INSTALL_PROGRAM) -D $(PCMCIA_CHECK_BROKEN_CIS) $(DESTDIR)$(sbindir)/$(PCMCIA_CHECK_BROKEN_CIS)
- $(SYMLINK) $(DESTDIR)$(sbindir)/$(PCCARDCTL) $(DESTDIR)$(sbindir)/$(LSPCMCIA)
+ $(SYMLINK) $(PCCARDCTL) $(DESTDIR)$(sbindir)/$(LSPCMCIA)
uninstall-tools:
- rm -f $(DESTDIR)$(sbindir)/$(PCCARDCTL)