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.
Unified · Split
| @@ -158,6 +158,8 @@ endif · 157 unmodified lines | ||
| 158 | 158 | |
| 159 | 159 | all: $(PROGS) $(TCCLIBS) $(TCCDOCS) |
| 160 | 160 | |
| 161 | +$(PROGS) $(TCCLIBS): *.c *.h | |
| 162 | + | |
| 161 | 163 | # Host Tiny C Compiler |
| 162 | 164 | tcc$(EXESUF): tcc.o $(LIBTCC) |
| 163 | 165 | $(CC) -o $@ $^ $(LIBS) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(LINK_LIBTCC) |