pkgsrc/mk/check/bsd.check.mk
rillig 3911155e2f Moved the portability checks from the configure/ directory to checks/,
since according to the comment in check/bsd.check.mk, they belong there.

Added a new check for all C and C++ header files to make sure they don't
contain strings like ${prefix} or ${exec_prefix}, which is currently a
problem with sysutils/dbus and has been noticed in PR 35019. This check
is disabled by default since I don't know anything about possible false
positives, but I plan to enable it for PKG_DEVELOPERs after some
testing.

Added two names for hooks that are placed in the configure and in the
build phase. Now the checks look more like becoming something one could
call a framework, sharing a common structure and a documented interface.
2006-11-09 02:53:15 +00:00

49 lines
1.6 KiB
Makefile

# $NetBSD: bsd.check.mk,v 1.4 2006/11/09 02:53:15 rillig Exp $
#
# This Makefile fragment is included by bsd.pkg.mk and provides all
# variables and targets related to build and install checks.
#
# There are some predefined hooks where checks can be added:
#
# pre-configure-checks-hook
# Is run before configuring the package.
#
# pre-build-checks-hook
# Is run before building the package.
#
# #notyet post-install-privileged-checks-hook
# Is run after the installation, as the user who installed
# the package.
#
# #notyet post-install-checks-hook
# Is run after the installation, as the user who built
# the package.
#
# The following are the "public" targets provided this module:
#
# check-files-pre, check-files-post, check-files
# check-interpreter, check-shlibs, check-vulnerable, check-wrkref
#
.include "${PKGSRCDIR}/mk/check/check-files.mk"
.include "${PKGSRCDIR}/mk/check/check-interpreter.mk"
.include "${PKGSRCDIR}/mk/check/check-perms.mk"
.include "${PKGSRCDIR}/mk/check/check-shlibs.mk"
.include "${PKGSRCDIR}/mk/check/check-vulnerable.mk"
.include "${PKGSRCDIR}/mk/check/check-wrkref.mk"
.include "${.PARSEDIR}/check-headers.mk"
.include "${.PARSEDIR}/check-portability.mk"
pre-configure-checks-hook \
pre-build-checks-hook: .PHONY
@${DO_NADA}
######################################################################
### check-clean (PRIVATE)
######################################################################
### check-clean is a helper target onto which one can hook all of the
### targets that clean up the output of "check" targets.
###
.PHONY: check-clean
check-clean:
@${DO_NADA}