[uClibc-cvs] uClibc Makefile,1.206,1.207
Erik Andersen
andersen at uclibc.org
Tue Jul 15 07:46:12 UTC 2003
Update of /var/cvs/uClibc
In directory winder:/tmp/cvs-serv32134
Modified Files:
Makefile
Log Message:
Patch from Peter Kjellerstedt to not modify include/bits/sysnum.h
if it does not need to be updated.
Index: Makefile
===================================================================
RCS file: /var/cvs/uClibc/Makefile,v
retrieving revision 1.206
retrieving revision 1.207
diff -u -d -r1.206 -r1.207
--- Makefile 30 Jun 2003 18:22:43 -0000 1.206
+++ Makefile 15 Jul 2003 07:46:09 -0000 1.207
@@ -181,8 +181,12 @@
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))
More information about the uClibc-cvs
mailing list