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