$(BUILDTOP)/include/profile.h was being updated by two different
rules, which could collide with make -j. Use a dependency from
includes instead of a redundant rule.
(cherry picked from commit
4d3827ac1b0e9e6447a132c57f3e2d74d3dfe8a9)
ticket: 7967
version_fixed: 1.12.2
status: resolved
$(PROFILE_HDR):: profile.h
$(CP) profile.h "$@"
-includes:: profile.h
- if cmp profile.h \
- $(BUILDTOP)/include/profile.h >/dev/null 2>&1; then :; \
- else \
- (set -x; $(RM) $(BUILDTOP)/include/profile.h; \
- $(CP) profile.h $(BUILDTOP)/include/profile.h) ; \
- fi
+includes:: $(PROFILE_HDR)
clean-unix::
$(RM) $(BUILDTOP)/include/profile.h test2.ini test3.ini test2.ini.bak