History

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.

seyko committed 11 years ago

Commit 4b92dbf1 parent 44c6e991 file · +2 −0Browse files

Unified · Split

Makefile+2−0
@@ -158,6 +158,8 @@ endif · 157 unmodified lines
158158
159159 all: $(PROGS) $(TCCLIBS) $(TCCDOCS)
160160
161+$(PROGS) $(TCCLIBS): *.c *.h
162+
161163 # Host Tiny C Compiler
162164 tcc$(EXESUF): tcc.o $(LIBTCC)
163165 $(CC) -o $@ $^ $(LIBS) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(LINK_LIBTCC)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t