aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenry Kroll III <henry@comptune.com>2010-04-29 23:06:23 -0700
committerHenry Kroll III <henry@comptune.com>2010-04-29 23:06:23 -0700
commit1f62f2253c9a9aeb8c31e87a182130f305dfe268 (patch)
tree6b41f6867ac2a79801ac88bfebdc5252dfb19ec7
parentc7a4e11bf1489b33047df240c50b5c1010a3536c (diff)
downloadtinycc-1f62f2253c9a9aeb8c31e87a182130f305dfe268.tar.gz
tinycc-1f62f2253c9a9aeb8c31e87a182130f305dfe268.tar.bz2
recursive Makefiles should use $(MAKE), not "make"
add clean: target for lib/tcc1.def
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 75b5601..4f39e72 100644
--- a/Makefile
+++ b/Makefile
@@ -197,10 +197,10 @@ tcc1.def:
echo "#define HOST_I386 1" >> config.h
echo "CFLAGS=-O2 -g -pipe -Wall -m32" >> config.mak
echo "ARCH=i386" >> config.mak
- make i386-win32-tcc
+ $(MAKE) i386-win32-tcc
cp i386-win32-tcc tcc.exe
mv libtcc1.a libtcc1.bak
- make CONFIG_WIN32=1 libtcc1.a
+ $(MAKE) CONFIG_WIN32=1 libtcc1.a
mv libtcc1.a lib/tcc1.def
mv libtcc1.bak libtcc1.a
mv config.mak.bak config.mak
@@ -327,7 +327,7 @@ tar:
$(MAKE) -C tests $@
clean:
- rm -vf $(PROGS) tcc_p$(EXESUF) tcc.pod *~ *.o *.a *.out *.so* *.exe libtcc_test$(EXESUF)
+ rm -vf $(PROGS) tcc_p$(EXESUF) tcc.pod *~ *.o *.a *.out *.so* *.exe libtcc_test$(EXESUF) lib/tcc1.def
$(MAKE) -C tests $@
distclean: clean