aboutsummaryrefslogtreecommitdiffstats
path: root/mk/xdestdir.mk
blob: af961b5e2f5f72fdd74d558393d2fb13e616169d (plain) (blame)
1
2
3
4
5
6
XDESTDIR =\
	$$(if test -n "$(DESTDIR)" && (! printf '%s\n' "$(DESTDIR)" | grep '^/' >/dev/null); then\
		printf '../%s\n' "$(DESTDIR)";\
	else\
		printf '%s\n' "$(DESTDIR)";\
	fi)