xref: /freebsd/krb5/util/profile/Makefile.profile (revision cf3eeeb75ceb7428c351218e6bd755e11613a633)
1*cf3eeeb7SCy SchubertGEN=	profile.h ${GEN_PROF_ERR_C} ${GEN_PROF_ERR_H}
2*cf3eeeb7SCy SchubertGEN_PROF_ERR=	prof_err.et
3*cf3eeeb7SCy SchubertGEN_PROF_ERR_C=	${GEN_PROF_ERR:S/.et$/.c/}
4*cf3eeeb7SCy SchubertGEN_PROF_ERR_H=	${GEN_PROF_ERR:S/.et$/.h/}
5*cf3eeeb7SCy Schubert${GEN_PROF_ERR:[2..-1]}: .NOMETA
6*cf3eeeb7SCy SchubertCLEANFILES+=	et-h-prof_err.et et-h-prof_err.c et-h-prof_err.h \
7*cf3eeeb7SCy Schubert	${GEN}
8*cf3eeeb7SCy Schubert
9*cf3eeeb7SCy Schubert.include "${KRB5_SRCTOP}/Makefile.et"
10*cf3eeeb7SCy Schubert
11*cf3eeeb7SCy Schubert${GEN_PROF_ERR_H}: ${GEN_PROF_ERR}
12*cf3eeeb7SCy Schubert	rm -f et-h-${.PREFIX}.et et-h-${.PREFIX}.c et-h-${.PREFIX}.h
13*cf3eeeb7SCy Schubert	cp ${.ALLSRC} et-h-${.PREFIX}.et
14*cf3eeeb7SCy Schubert	${COMPILE_ET} et-h-${.PREFIX}.et
15*cf3eeeb7SCy Schubert	mv et-h-${.PREFIX}.h ${.PREFIX}.h
16*cf3eeeb7SCy Schubert	rm -f et-h-${.PREFIX}.et et-h-${.PREFIX}.h
17*cf3eeeb7SCy Schubert
18*cf3eeeb7SCy Schubert${GEN_PROF_ERR_C}: ${GEN_PROF_ERR}
19*cf3eeeb7SCy Schubert	rm -f et-c-${.PREFIX}.et et-c-${.PREFIX}.c et-c-${.PREFIX}.h
20*cf3eeeb7SCy Schubert	cp ${.ALLSRC} et-c-${.PREFIX}.et
21*cf3eeeb7SCy Schubert	${COMPILE_ET} et-c-${.PREFIX}.et
22*cf3eeeb7SCy Schubert	mv et-c-${.PREFIX}.c ${.PREFIX}.c
23*cf3eeeb7SCy Schubert	rm -f et-c-${.PREFIX}.et et-c-${.PREFIX}.c
24*cf3eeeb7SCy Schubert
25*cf3eeeb7SCy Schubertprofile.h:	profile.hin prof_err.h
26*cf3eeeb7SCy Schubert	cat ${.ALLSRC} > ${.TARGET}
27