3 # Common Makefile code for all components of ATF.
7 .error "ATF must be defined and point to the contrib/atf directory"
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