aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseyko <seyko2@gmail.com>2015-03-05 16:39:25 +0300
committerseyko <seyko2@gmail.com>2015-03-05 16:39:25 +0300
commit4b92dbf9237c5712d2ab3a2ce3fab7904c85dad2 (patch)
tree3855fbc4728041f21ae613cb35403d5e0079f471
parent44c6e992bdba8888e88c596e283b2e77ba4a05b2 (diff)
downloadtinycc-4b92dbf9237c5712d2ab3a2ce3fab7904c85dad2.tar.gz
tinycc-4b92dbf9237c5712d2ab3a2ce3fab7904c85dad2.tar.bz2
Add a dependency for a PROGS and TCCLIBS to a Makefile
Simply assume this is all *.c and *.h files in a tcc top directory. Now a tcc compiler is recompiled if any of this files is changed.
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index d798fd6..5bd8072 100644
--- a/Makefile
+++ b/Makefile
@@ -158,6 +158,8 @@ endif
all: $(PROGS) $(TCCLIBS) $(TCCDOCS)
+$(PROGS) $(TCCLIBS): *.c *.h
+
# Host Tiny C Compiler
tcc$(EXESUF): tcc.o $(LIBTCC)
$(CC) -o $@ $^ $(LIBS) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(LINK_LIBTCC)