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.
This commit is contained in:
Christian Hesse 2014-08-27 22:31:50 +02:00
parent efe1a2a70f
commit 3cafc0d6e8

View File

@ -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