diff --git a/src/ChangeLog b/src/ChangeLog index fc900a8c..c077ac4e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2007-10-13 Micah Cowan + + * Makefile.am: Make version.c depend on Wget dependencies (source + files, plus such things as LIBOBJS so we get things like + http-ntlm.c or gen-md5.c). + 2007-10-10 Micah Cowan * http-ntlm.c: Include openssl/opensslv.h explicitly, instead of diff --git a/src/Makefile.am b/src/Makefile.am index dcc19c81..e508ceeb 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -47,15 +47,13 @@ wget_SOURCES = cmpt.c connect.c convert.c cookies.c ftp.c ftp-basic.c \ EXTRA_wget_SOURCES = mswindows.c LDADD = $(ALLOCA) $(LIBOBJS) -# version.c's not really _phony_, but it does need to be generated each run. -.PHONY: version.c version.c: hg-id printf '%s' 'const char *version_string = "@VERSION@' > $@ -HG_ID=$$(cat hg-id); [ "$$HG_ID" ] && printf '%s' " ($${HG_ID})" >> $@ printf '%s\n' '";' >> $@ .INTERMEDIATE: hg-id -hg-id: +hg-id: $(wget_SOURCES) $(LDADD) -( hg id | cut -f 1 -d ' ' ) 2>/dev/null > $@ check_LIBRARIES = libunittest.a