Don't force rebuild if mksysinfo.sh does not change sysinfo.go.
From-SVN: r169342
This commit is contained in:
parent
afc9550b35
commit
24d6250f98
@ -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
|
||||
|
@ -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
|
||||
|
@ -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 $?
|
||||
|
Loading…
Reference in New Issue
Block a user