Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/pcc/dist/pcc execute lists of commands in sub-s...



details:   https://anonhg.NetBSD.org/src/rev/b53d2ea9179d
branches:  trunk
changeset: 751027:b53d2ea9179d
user:      plunky <plunky%NetBSD.org@localhost>
date:      Fri Jan 22 11:08:40 2010 +0000

description:
execute lists of commands in sub-shells so that the cwd doesn't get
not changed between commands

(nbmake will execute all commands in the same context when given -j)

this allows HAVE_PCC=yes tools build to install the pcc files

diffstat:

 external/bsd/pcc/dist/pcc/cc/Makefile.in  |  20 ++++++++++----------
 external/bsd/pcc/dist/pcc/f77/Makefile.in |  14 +++++++-------
 2 files changed, 17 insertions(+), 17 deletions(-)

diffs (70 lines):

diff -r 18b6dc3b0753 -r b53d2ea9179d external/bsd/pcc/dist/pcc/cc/Makefile.in
--- a/external/bsd/pcc/dist/pcc/cc/Makefile.in  Fri Jan 22 10:28:08 2010 +0000
+++ b/external/bsd/pcc/dist/pcc/cc/Makefile.in  Fri Jan 22 11:08:40 2010 +0000
@@ -1,4 +1,4 @@
-#      $Id: Makefile.in,v 1.1.1.1 2008/08/24 05:33:01 gmcgarry Exp $
+#      $Id: Makefile.in,v 1.2 2010/01/22 11:08:40 plunky Exp $
 #
 # Makefile.in for top-level of pcc.
 #
@@ -17,19 +17,19 @@
 all: ${SUBDIR}
 
 install:
-       cd cc && ${MAKE} install
-       cd cpp && ${MAKE} install
-       cd ccom && ${MAKE} install
+       (cd cc && ${MAKE} install)
+       (cd cpp && ${MAKE} install)
+       (cd ccom && ${MAKE} install)
 
 clean:
-       cd cc && ${MAKE} clean
-       cd cpp && ${MAKE} clean
-       cd ccom && ${MAKE} clean
+       (cd cc && ${MAKE} clean)
+       (cd cpp && ${MAKE} clean)
+       (cd ccom && ${MAKE} clean)
 
 distclean:
-       cd cc && ${MAKE} distclean
-       cd cpp && ${MAKE} distclean
-       cd ccom && ${MAKE} distclean
+       (cd cc && ${MAKE} distclean)
+       (cd cpp && ${MAKE} distclean)
+       (cd ccom && ${MAKE} distclean)
        /bin/rm -rf Makefile config.log stamp-h1 config.status \
        configure.lineno config.h autom4te.cache
 
diff -r 18b6dc3b0753 -r b53d2ea9179d external/bsd/pcc/dist/pcc/f77/Makefile.in
--- a/external/bsd/pcc/dist/pcc/f77/Makefile.in Fri Jan 22 10:28:08 2010 +0000
+++ b/external/bsd/pcc/dist/pcc/f77/Makefile.in Fri Jan 22 11:08:40 2010 +0000
@@ -1,4 +1,4 @@
-#      $Id: Makefile.in,v 1.1.1.1 2008/08/24 05:33:05 gmcgarry Exp $
+#      $Id: Makefile.in,v 1.2 2010/01/22 11:08:40 plunky Exp $
 #
 # Makefile.in for top-level of pcc.
 #
@@ -16,16 +16,16 @@
 all: ${SUBDIR}
 
 install:
-       cd f77 && ${MAKE} install
-       cd fcom && ${MAKE} install
+       (cd f77 && ${MAKE} install)
+       (cd fcom && ${MAKE} install)
 
 clean:
-       cd f77 && ${MAKE} clean
-       cd fcom && ${MAKE} clean
+       (cd f77 && ${MAKE} clean)
+       (cd fcom && ${MAKE} clean)
 
 distclean:
-       cd f77 && ${MAKE} distclean
-       cd fcom && ${MAKE} distclean
+       (cd f77 && ${MAKE} distclean)
+       (cd fcom && ${MAKE} distclean)
        /bin/rm -rf Makefile config.log stamp-h1 config.status \
        configure.lineno config.h autom4te.cache
 



Home | Main Index | Thread Index | Old Index