From 4b92dbf9237c5712d2ab3a2ce3fab7904c85dad2 Mon Sep 17 00:00:00 2001 From: seyko Date: Thu, 5 Mar 2015 16:39:25 +0300 Subject: [PATCH] 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. --- Makefile | 2 ++ 1 file changed, 2 insertions(+) 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)