diff --git a/Makefile.inc b/Makefile.inc index 0ef2231..48f7207 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -1,4 +1,11 @@ # This is to replicate the other parts of the FreeBSD build infrastructure. +.if defined(PREFIX) +BINDIR?= ${PREFIX}/sbin +SHAREDIR?= ${PREFIX}/share +TESTSBASE?= ${PREFIX}/tests +.else BINDIR?= /sbin +.endif + WARNS?= 6 diff --git a/tests/Makefile b/tests/Makefile index 0fa31a1..591c978 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -2,8 +2,12 @@ PACKAGE= tests -TESTSDIR= ${TESTSBASE}/sys/geom/class/gate +TESTSDIR= ${TESTSBASE}/sbin/ggatessh +DIRS+= ${TESTSDIR} ATF_TESTS_SH+= ggatessh_test +# make sure dirs are created +beforeinstall: installdirs + .include