1 $(DEPDIR)/deps-ver: $(top_srcdir)/deps-ver
3 cp $(top_srcdir)/deps-ver $@
6 @cmp $(top_srcdir)/deps-ver $@ > /dev/null || ( \
7 $(MAKE) $(AM_MAKEFLAGS) clean && \
8 echo -n "Prior $(subdir)/$(DEPDIR) version " && \
12 case "$(top_builddir)" in \
14 ./config.status Makefile depfiles \
17 cd "$(top_builddir)" && \
18 ./config.status $(subdir)/Makefile depfiles && \
22 echo -n "Cleaned $(subdir)/$(DEPDIR) version " && \
23 cat $(top_srcdir)/deps-ver \
25 cp $(top_srcdir)/deps-ver $@
27 .deps-ver: $(top_srcdir)/deps-ver
28 @[ ! -d $(DEPDIR) ] || $(MAKE) $(AM_MAKEFLAGS) $(DEPDIR)/deps-ver
31 BUILT_SOURCES += .deps-ver
32 CLEANFILES += .deps-ver
35 # depsver.mf included in Makefile.am for directories with .deps
37 # When building in the same directory with sources that change over
38 # time, such as when tracking using bk, the .deps files can become
39 # stale with respect to moved, deleted, or superceded headers. Most
40 # commonly, this would exhibit as make reporting a failure to make a
41 # header file which is no longer in the location given. To address
42 # this issue, we use a deps-ver file which is updated with each change
43 # that breaks old .deps files. A copy of deps-ver is made into
44 # $(DEPDIR) if not already present. If $(DEPDIR)/deps-ver is present
45 # with different contents than deps-ver, we make clean to ensure all
46 # .o files built before the incompatible change are rebuilt along with
47 # their updated .deps files, then remove $(DEPDIR) and recreate it as
50 # It is normal when configured with --disable-dependency-tracking for
51 # the DEPDIR to not have been created. For this reason, we use the
52 # intermediate target .deps-ver, which invokes make recursively if
55 # If you modify depsver.mf, please make the changes to the master
56 # copy, the one in sntp is copied by the bootstrap script from it.
58 # This comment block follows rather than leads the related code so that
59 # it stays with it in the generated Makefile.in and Makefile.