summaryrefslogtreecommitdiff
path: root/src/lib/Makefile
blob: e1068c1745b638915a66a0105db65536c3f8dd4a (plain)
1
2
3
4
5
6
7
8
9
10
libre_execdir=$(bindir)
libre_datadir=$(libexecdir)/libretools
include ../../common.mk

rootdir=$(shell sed -r 's|^/||;s|[^/]+|..|g'<<<$(bindir))

$(DESTDIR)$(libre_execdir)/%: %
	install -Dm755 '$<' '$(DESTDIR)$(libre_datadir)/$(@F)'
	install -d '$(@D)'
	ln -sf '$(rootdir)$(libre_datadir)/$(@F)' "$@"