xref: /freebsd/krb5/util/compile_et/Makefile (revision 9f0f30bc1f5f08d25243952bad3fdc6e13a75c2a)
1#
2# SPDX-License-Idendifier: BSD-2-Clause
3#
4# Copyright (c) 2025 FreeBSD Foundation
5#
6# This sofware was developed by Cy Schubert <cy@FreeBSD.org>
7# under sponsorship from the FreeBSD Foundation.
8#
9
10PACKAGE=	kerberos
11
12.include "../Makefile.inc"
13
14SRC_ETDIR=	${KRB5_DIR}/util/et
15
16SCRIPTNAME=	compile_et
17SCRIPTS=	compile_et
18BINDIR?=	/usr/bin
19MAN=		compile_et.1
20CLEANFILES=	compile_et
21
22.if !defined(BOOTSTRAPPING)
23SCRIPTSDIR=	${SHAREDIR}/et
24.endif
25
26compile_et: compile_et.sh
27	sh ${SRC_ETDIR}/config_script ${SRC_ETDIR}/compile_et.sh \
28	"${KRB5_ETDIR}" /usr/bin/awk /usr/bin/sed > ${.TARGET}
29	chmod 0755 ${.TARGET}
30
31.include <bsd.prog.mk>
32
33.SUFFIXES: .h .c .man .1
34
35.man.1:
36	@cp ${.ALLSRC} ${.TARGET}
37
38.PATH: ${KRB5_DIR}/util/et
39