Don't force rebuild if mksysinfo.sh does not change sysinfo.go.

From-SVN: r169342
This commit is contained in:
Ian Lance Taylor 2011-01-27 23:25:31 +00:00
parent afc9550b35
commit 24d6250f98
3 changed files with 10 additions and 5 deletions

View File

@ -2464,8 +2464,12 @@ testing/script/check: $(CHECK_DEPS)
$(CHECK)
.PHONY: testing/script/check
sysinfo.go: $(srcdir)/mksysinfo.sh config.h
sysinfo.go: s-sysinfo; @true
s-sysinfo: $(srcdir)/mksysinfo.sh config.h
CC="$(CC)" $(SHELL) $(srcdir)/mksysinfo.sh
$(SHELL) $(srcdir)/../move-if-change tmp-sysinfo.go sysinfo.go
$(STAMP) $@
syscalls/libsyscall.a: $(go_syscall_files) $(go_syscall_c_files) sync.gox
rm -f syscall.gox syscalls/libsyscall.a
test -d syscalls || $(MKDIR_P) syscalls

View File

@ -4863,8 +4863,12 @@ testing/script/check: $(CHECK_DEPS)
$(CHECK)
.PHONY: testing/script/check
sysinfo.go: $(srcdir)/mksysinfo.sh config.h
sysinfo.go: s-sysinfo; @true
s-sysinfo: $(srcdir)/mksysinfo.sh config.h
CC="$(CC)" $(SHELL) $(srcdir)/mksysinfo.sh
$(SHELL) $(srcdir)/../move-if-change tmp-sysinfo.go sysinfo.go
$(STAMP) $@
syscalls/libsyscall.a: $(go_syscall_files) $(go_syscall_c_files) sync.gox
rm -f syscall.gox syscalls/libsyscall.a
test -d syscalls || $(MKDIR_P) syscalls

View File

@ -21,8 +21,6 @@ OUT=tmp-sysinfo.go
set -e
rm -f sysinfo.go
rm -f sysinfo.c
cat > sysinfo.c <<EOF
#include "config.h"
@ -388,5 +386,4 @@ echo $msghdr | \
-e 's/msg_flags/Flags/' \
>> ${OUT}
mv -f ${OUT} sysinfo.go
exit $?