summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-07-15 07:46:09 +0000
committerEric Andersen <andersen@codepoet.org>2003-07-15 07:46:09 +0000
commit654b5ef1061619193ac07ef247dad1faf790b793 (patch)
treeb36230ebb1a28dc7f260f5956d362185c6782ca6
parentecbc93c3990cf2ed89a62639139ab89e68037a3f (diff)
Patch from Peter Kjellerstedt to not modify include/bits/sysnum.h
if it does not need to be updated.
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index cd488b0b2..2c0e2d3a3 100644
--- a/Makefile
+++ b/Makefile
@@ -181,8 +181,12 @@ headers: include/bits/uClibc_config.h
fi
@cd $(TOPDIR); \
set -x -e; \
- rm -f include/bits/sysnum.h; \
- TOPDIR=. CC="$(CC)" /bin/sh extra/scripts/gen_bits_syscall_h.sh > include/bits/sysnum.h
+ TOPDIR=. CC="$(CC)" /bin/sh extra/scripts/gen_bits_syscall_h.sh > include/bits/sysnum.h.new; \
+ if cmp include/bits/sysnum.h include/bits/sysnum.h.new >/dev/null 2>&1; then \
+ $(RM) include/bits/sysnum.h.new; \
+ else \
+ mv -f include/bits/sysnum.h.new include/bits/sysnum.h; \
+ fi
$(MAKE) -C libc/sysdeps/linux/$(TARGET_ARCH) headers
subdirs: $(patsubst %, _dir_%, $(DIRS))