We make two changes which affect only the litle recursive make of
version.o. We only build version.o in the little sub-make when
relinking and then we want to always do it. So the setting of OBJECTS
is pointless, and instead we make version.c depend on FORCE.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
eax-test.o aes.o
ifeq (version.o,$(MAKECMDGOALS))
eax-test.o aes.o
ifeq (version.o,$(MAKECMDGOALS))
rm -rf $(addsuffix /d-*, $(TESTDIRS))
$(MAKE) check
rm -rf $(addsuffix /d-*, $(TESTDIRS))
$(MAKE) check
+.PHONY: FORCE
+version.c: FORCE
echo "#include \"secnet.h\"" >$@.new
@set -ex; if test -e .git && type -p git >/dev/null; then \
v=$$(git describe --match 'v*'); v=$${v#v}; \
echo "#include \"secnet.h\"" >$@.new
@set -ex; if test -e .git && type -p git >/dev/null; then \
v=$$(git describe --match 'v*'); v=$${v#v}; \