make clean is broken

This commit is contained in:
camthesaxman 2020-01-30 02:06:21 -06:00
parent d8bdbc027f
commit 4f87fae05b
3 changed files with 10 additions and 10 deletions

1
.gitignore vendored
View File

@ -19,6 +19,7 @@ old_agbcc
*/genpeep
*/genrecog
*/config.log
gcc_arm/auto-host.h
gcc_arm/config.cache
gcc_arm/config.log
gcc_arm/config.status

View File

@ -3,16 +3,15 @@ set -e
CCOPT=
CXXOPT=
if [ ! -z "$CC" ]; then CCOPT=CC=$CC; fi
if [ ! -z "$CXX" ]; then CXXOPT=CXX=$CXX; fi
make -C gcc clean
make -C gcc old $CCOPT $CXXOPT
mv gcc/old_agbcc .
make -C gcc clean
make -C gcc $CCOPT $CXXOPT
mv gcc/agbcc .
#if [ ! -z "$CC" ]; then CCOPT=CC=$CC; fi
#if [ ! -z "$CXX" ]; then CXXOPT=CXX=$CXX; fi
#make -C gcc clean
#make -C gcc old $CCOPT $CXXOPT
#mv gcc/old_agbcc .
#make -C gcc clean
#make -C gcc $CCOPT $CXXOPT
#mv gcc/agbcc .
# not sure if the ARM compiler is the old one or the new one (-DOLD_COMPILER)
[ ! -e gcc_arm/Makefile ] || make -C gcc_arm clean
rm -f gcc_arm/config.status gcc_arm/config.cache
cd gcc_arm && ./configure --target=arm-elf --host=i386-linux-gnu && make cc1 && cd ..
mv gcc_arm/cc1 agbcc_arm

View File

@ -763,7 +763,7 @@ cstamp-h: config.in config.status
config.status: configure version.c
@if [ ! -f config.status ] ; then \
echo You must configure gcc. Look at the INSTALL file for details.; \
true; \
false; \
else \
LANGUAGES="$(CONFIG_LANGUAGES)" $(SHELL) config.status --recheck; \
fi