scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit aa087c6f77d443260ead06fefee9f9b39d908592
parent ee4761d6223d09d9fe13af32f3ba31722bbb44c1
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Fri,  3 Mar 2017 18:13:53 +0100

Remove subshell in Makefile

Removing the subshell makes that make fails just at that point
and nothing else is done and the error is reported to the user

Diffstat:
Makefile | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile @@ -17,10 +17,12 @@ scc-driver: ln -f driver/$(DRIVER)/scc bin/scc $(ARCHS): + pwd=$PWD ;\ for i in cc1 cc2; \ do \ - (cd $$i; \ - ARCH=$@ $(MAKE) -e $$i-$@ || exit); \ + cd $$i; \ + ARCH=$@ $(MAKE) -e $$i-$@ || exit; \ + cd $pwd ;\ done ln -f cc1/cc1-$@ bin/ ln -f cc2/cc2-$@ bin/