Browse Source

install to PREFIX if defined, make tests dir before install..

This gets things working sanely for packaging...
tags/ggatessh-v1.0.0
John-Mark Gurney 4 years ago
parent
commit
1a12d7a97c
2 changed files with 12 additions and 1 deletions
  1. +7
    -0
      Makefile.inc
  2. +5
    -1
      tests/Makefile

+ 7
- 0
Makefile.inc View File

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

+ 5
- 1
tests/Makefile View File

@@ -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 <bsd.test.mk>

Loading…
Cancel
Save