]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/atf/common.mk
libpfctl: remove unused field from struct pfctl_states
[FreeBSD/FreeBSD.git] / lib / atf / common.mk
1 #
2 # Common Makefile code for all components of ATF.
3 #
4
5 .if !defined(ATF)
6 .error "ATF must be defined and point to the contrib/atf directory"
7 .endif
8
9 # Depend on the atf-version target to generate a file that contains the
10 # version number of the currently imported ATF release and that only
11 # changes on new imports.
12 atf-version: atf-version-real
13         @cmp -s atf-version atf-version-real \
14             || cp atf-version-real atf-version
15 atf-version-real: .PHONY
16         @grep 'define VERSION' ${ATF}/config.h \
17             | cut -d '"' -f 2 >atf-version-real
18 CLEANFILES+= atf-version atf-version-real