1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Avoid regenerating on 'make' when we don't have to.

This commit is contained in:
Micah Cowan 2007-10-13 02:39:01 -07:00
parent 787ffba182
commit 12aa50d08f
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2007-10-13 Micah Cowan <micah@cowan.name>
* 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 <micah@cowan.name> 2007-10-10 Micah Cowan <micah@cowan.name>
* http-ntlm.c: Include openssl/opensslv.h explicitly, instead of * http-ntlm.c: Include openssl/opensslv.h explicitly, instead of

View File

@ -47,15 +47,13 @@ wget_SOURCES = cmpt.c connect.c convert.c cookies.c ftp.c ftp-basic.c \
EXTRA_wget_SOURCES = mswindows.c EXTRA_wget_SOURCES = mswindows.c
LDADD = $(ALLOCA) $(LIBOBJS) 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 version.c: hg-id
printf '%s' 'const char *version_string = "@VERSION@' > $@ printf '%s' 'const char *version_string = "@VERSION@' > $@
-HG_ID=$$(cat hg-id); [ "$$HG_ID" ] && printf '%s' " ($${HG_ID})" >> $@ -HG_ID=$$(cat hg-id); [ "$$HG_ID" ] && printf '%s' " ($${HG_ID})" >> $@
printf '%s\n' '";' >> $@ printf '%s\n' '";' >> $@
.INTERMEDIATE: hg-id .INTERMEDIATE: hg-id
hg-id: hg-id: $(wget_SOURCES) $(LDADD)
-( hg id | cut -f 1 -d ' ' ) 2>/dev/null > $@ -( hg id | cut -f 1 -d ' ' ) 2>/dev/null > $@
check_LIBRARIES = libunittest.a check_LIBRARIES = libunittest.a