From 3cafc0d6e80d1a0023099515252a90ae46266411 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 27 Aug 2014 22:31:50 +0200 Subject: [PATCH] fix symbolic link at install time Packaging tools often install via $ make DESTDIR="${pkgdir}" install which breaks the symbolic links. The package contains symbolic links to ${pkgdir}/$(BINDIR)/pdata_tools, which is wrong. Just use relative path, which is really easy as binary and symlinks are in the same directory. --- Makefile.in | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Makefile.in b/Makefile.in index 47bb267..525f228 100644 --- a/Makefile.in +++ b/Makefile.in @@ -159,21 +159,21 @@ distclean: clean install: bin/pdata_tools $(INSTALL_DIR) $(BINDIR) $(INSTALL_PROGRAM) bin/pdata_tools $(BINDIR) - ln -s -f $(BINDIR)/pdata_tools $(BINDIR)/cache_check - ln -s -f $(BINDIR)/pdata_tools $(BINDIR)/cache_dump - ln -s -f $(BINDIR)/pdata_tools $(BINDIR)/cache_metadata_size - ln -s -f $(BINDIR)/pdata_tools $(BINDIR)/cache_repair - ln -s -f $(BINDIR)/pdata_tools $(BINDIR)/cache_restore - ln -s -f $(BINDIR)/pdata_tools $(BINDIR)/thin_check - ln -s -f $(BINDIR)/pdata_tools $(BINDIR)/thin_dump - ln -s -f $(BINDIR)/pdata_tools $(BINDIR)/thin_repair - ln -s -f $(BINDIR)/pdata_tools $(BINDIR)/thin_restore - ln -s -f $(BINDIR)/pdata_tools $(BINDIR)/thin_rmap - ln -s -f $(BINDIR)/pdata_tools $(BINDIR)/thin_metadata_size - ln -s -f $(BINDIR)/pdata_tools $(BINDIR)/era_check - ln -s -f $(BINDIR)/pdata_tools $(BINDIR)/era_dump - ln -s -f $(BINDIR)/pdata_tools $(BINDIR)/era_invalidate - ln -s -f $(BINDIR)/pdata_tools $(BINDIR)/era_restore + ln -s -f pdata_tools $(BINDIR)/cache_check + ln -s -f pdata_tools $(BINDIR)/cache_dump + ln -s -f pdata_tools $(BINDIR)/cache_metadata_size + ln -s -f pdata_tools $(BINDIR)/cache_repair + ln -s -f pdata_tools $(BINDIR)/cache_restore + ln -s -f pdata_tools $(BINDIR)/thin_check + ln -s -f pdata_tools $(BINDIR)/thin_dump + ln -s -f pdata_tools $(BINDIR)/thin_repair + ln -s -f pdata_tools $(BINDIR)/thin_restore + ln -s -f pdata_tools $(BINDIR)/thin_rmap + ln -s -f pdata_tools $(BINDIR)/thin_metadata_size + ln -s -f pdata_tools $(BINDIR)/era_check + ln -s -f pdata_tools $(BINDIR)/era_dump + ln -s -f pdata_tools $(BINDIR)/era_invalidate + ln -s -f pdata_tools $(BINDIR)/era_restore $(INSTALL_DIR) $(MANPATH)/man8 $(INSTALL_DATA) man8/cache_check.8 $(MANPATH)/man8 $(INSTALL_DATA) man8/cache_dump.8 $(MANPATH)/man8