freebsd-dev/secure/Makefile
Enji Cooper 4b330699f8 Convert traditional ${MK_TESTS} conditional idiom for including test
directories to SUBDIR.${MK_TESTS} idiom

This is being done to pave the way for future work (and homogenity) in
^/projects/make-check-sandbox .

No functional change intended.

MFC after:	1 weeks
2017-08-02 08:35:51 +00:00

40 lines
940 B
Makefile

# $FreeBSD$
.include <src.opts.mk>
SUBDIR= lib .WAIT \
libexec usr.bin usr.sbin
SUBDIR_PARALLEL=
SUBDIR.${MK_TESTS}+= tests
# These are the programs which depend on crypto, but not Kerberos.
SPROGS= lib/libfetch lib/libpam lib/libradius lib/libtelnet \
bin/ed libexec/telnetd usr.bin/fetch usr.bin/telnet \
usr.sbin/pkg_install usr.sbin/ppp usr.sbin/tcpdump/tcpdump
.if ${MK_SENDMAIL} != "no"
SPROGS+=usr.sbin/sendmail
.endif
# This target is used to rebuild these programs with crypto.
secure: .MAKE .PHONY
.for entry in ${SPROGS}
cd ${.CURDIR:H}/${entry}; \
${MAKE} cleandir; \
${MAKE} obj; \
${MAKE} all; \
${MAKE} install
.endfor
# This target is used to rebuild these programs without crypto.
insecure: .MAKE .PHONY
.for entry in ${SPROGS}
cd ${.CURDIR:H}/${entry}; \
${MAKE} MK_CRYPT=no cleandir; \
${MAKE} MK_CRYPT=no obj; \
${MAKE} MK_CRYPT=no all; \
${MAKE} MK_CRYPT=no install
.endfor
.include <bsd.subdir.mk>