summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-01-01 21:57:28 +0000
committerEric Andersen <andersen@codepoet.org>2002-01-01 21:57:28 +0000
commit4643b181bdf1d9121f9d6d4214e991e7b9f52d30 (patch)
treec5615b9d242314847c555255c4e57f195c3444ad /libc
parent01d1ae3769f7fb1fa66dbc0789a61b05fee3452f (diff)
Change all 'cd <foo>; bar' constructs to 'cd <foo> && bar' for
proper error checking -Erik
Diffstat (limited to 'libc')
-rw-r--r--libc/Makefile6
-rw-r--r--libc/sysdeps/linux/i386/Makefile4
-rw-r--r--libc/sysdeps/linux/m68k/Makefile4
-rw-r--r--libc/sysdeps/linux/mips/Makefile2
4 files changed, 8 insertions, 8 deletions
diff --git a/libc/Makefile b/libc/Makefile
index ee8dfef75..295386c2b 100644
--- a/libc/Makefile
+++ b/libc/Makefile
@@ -43,7 +43,7 @@ $(LIBNAME): subdirs
shared: $(TOPDIR)lib/$(LIBNAME)
@rm -rf tmp
@mkdir tmp
- @(cd tmp; CC=$(CC) LD=$(LD) NM=$(NM) AR=$(AR) /bin/sh ../../extra/scripts/get-needed-libgcc-objects.sh)
+ @(cd tmp && CC=$(CC) LD=$(LD) NM=$(NM) AR=$(AR) /bin/sh ../../extra/scripts/get-needed-libgcc-objects.sh)
if [ -s ./tmp/libgcc-need.a ] ; then \
$(CC) -g $(LDFLAGS) -shared -o $(SHARED_FULLNAME) \
-Wl,-soname,$(SHARED_MAJORNAME) -Wl,--whole-archive \
@@ -58,8 +58,8 @@ shared: $(TOPDIR)lib/$(LIBNAME)
install -d $(TOPDIR)lib
rm -f $(TOPDIR)lib/$(SHARED_FULLNAME)
install -m 644 $(SHARED_FULLNAME) $(TOPDIR)lib
- (cd ../lib; ln -sf $(SHARED_FULLNAME) libc.so);
- (cd ../lib; ln -sf $(SHARED_FULLNAME) $(SHARED_MAJORNAME));
+ (cd ../lib && ln -sf $(SHARED_FULLNAME) libc.so);
+ (cd ../lib && ln -sf $(SHARED_FULLNAME) $(SHARED_MAJORNAME));
halfclean:
diff --git a/libc/sysdeps/linux/i386/Makefile b/libc/sysdeps/linux/i386/Makefile
index 4a333801f..6178c662c 100644
--- a/libc/sysdeps/linux/i386/Makefile
+++ b/libc/sysdeps/linux/i386/Makefile
@@ -74,8 +74,8 @@ $(COBJS): %.o : %.c
headers:
@(TOPDIR=$(TOPDIR) CC=$(CC) /bin/sh $(TOPDIR)/extra/scripts/gen_bits_syscall_h.sh > bits/syscall.h )
- cd $(TOPDIR)/include/sys;ln -fs ../../libc/sysdeps/linux/i386/vm86.h .
- cd $(TOPDIR)/include/sys;ln -fs ../../libc/sysdeps/linux/i386/reg.h .
+ cd $(TOPDIR)/include/sys && ln -fs ../../libc/sysdeps/linux/i386/vm86.h .
+ cd $(TOPDIR)/include/sys && ln -fs ../../libc/sysdeps/linux/i386/reg.h .
clean:
diff --git a/libc/sysdeps/linux/m68k/Makefile b/libc/sysdeps/linux/m68k/Makefile
index ae81e2230..701f339dd 100644
--- a/libc/sysdeps/linux/m68k/Makefile
+++ b/libc/sysdeps/linux/m68k/Makefile
@@ -72,10 +72,10 @@ $(COBJS): %.o : %.c
headers:
@(TOPDIR=$(TOPDIR) CC=$(CC) /bin/sh $(TOPDIR)/extra/scripts/gen_bits_syscall_h.sh > bits/syscall.h )
- cd $(TOPDIR)/include/sys;ln -fs ../../libc/sysdeps/linux/m68k/reg.h .
+ cd $(TOPDIR)/include/sys && ln -fs ../../libc/sysdeps/linux/m68k/reg.h .
ifeq ($(strip $(HAVE_ELF)),false)
echo "Working around compiler bug in the m68k-pic-coff toolchain"
- cd $(TOPDIR)/include;ln -fs ../libc/sysdeps/linux/m68k/float.h .
+ cd $(TOPDIR)/include && ln -fs ../libc/sysdeps/linux/m68k/float.h .
endif
diff --git a/libc/sysdeps/linux/mips/Makefile b/libc/sysdeps/linux/mips/Makefile
index 18a0e5f68..2d881d774 100644
--- a/libc/sysdeps/linux/mips/Makefile
+++ b/libc/sysdeps/linux/mips/Makefile
@@ -74,7 +74,7 @@ $(COBJS): %.o : %.c
headers:
@(TOPDIR=$(TOPDIR) CC=$(CC) /bin/sh $(TOPDIR)/extra/scripts/gen_bits_syscall_h.sh > bits/syscall.h )
- cd $(TOPDIR)/include;ln -fs ../libc/sysdeps/linux/mipsel/sgidefs.h .
+ cd $(TOPDIR)/include && ln -fs ../libc/sysdeps/linux/mipsel/sgidefs.h .
clean:
rm -f *.[oa] *~ core