From 24d6250f98420fb68817641056bcddd38067b64d Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 27 Jan 2011 23:25:31 +0000 Subject: [PATCH] Don't force rebuild if mksysinfo.sh does not change sysinfo.go. From-SVN: r169342 --- libgo/Makefile.am | 6 +++++- libgo/Makefile.in | 6 +++++- libgo/mksysinfo.sh | 3 --- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/libgo/Makefile.am b/libgo/Makefile.am index af67803034d..dd17fffc9ab 100644 --- a/libgo/Makefile.am +++ b/libgo/Makefile.am @@ -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 diff --git a/libgo/Makefile.in b/libgo/Makefile.in index af123adf7a9..238d0d3553b 100644 --- a/libgo/Makefile.in +++ b/libgo/Makefile.in @@ -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 diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh index 20eae7904c9..321b4324584 100755 --- a/libgo/mksysinfo.sh +++ b/libgo/mksysinfo.sh @@ -21,8 +21,6 @@ OUT=tmp-sysinfo.go set -e -rm -f sysinfo.go - rm -f sysinfo.c cat > sysinfo.c <> ${OUT} -mv -f ${OUT} sysinfo.go exit $?