aboutsummaryrefslogtreecommitdiff
path: root/sntp/bincheck.mf
blob: 326b7adedf6ac916b727ea232c75a7514a1e2e8e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# we traditionally installed software in bindir, while it should have gone
# in sbindir.  Now that we offer a choice, look in the "other" installation
# subdir to warn folks if there is another version there.

install-exec-hook:
	@case ${BINSUBDIR} in						\
	 bin) ODIR=${sbindir} ;;					\
	 sbin) ODIR=${bindir} ;;					\
	esac;								\
	test -z "${bin_PROGRAMS}${bin_SCRIPTS}"				\
	|| for i in ${bin_PROGRAMS} ${bin_SCRIPTS} " "; do		\
	   test ! -f $$ODIR/$$i || echo "*** $$i is also in $$ODIR!";	\
	done

#