build: add .h and Makefile as dependencies of the tools

This commit is contained in:
Alejandro Mery 2012-05-04 00:48:46 +02:00
parent 4defc577d9
commit fd07c54402

View File

@ -10,8 +10,11 @@ all: $(TOOLS)
clean:
@rm -vf $(TOOLS)
$(TOOLS): sunxi-tools.h
bin2fex: bin2fex.h
$(TOOLS): Makefile sunxi-tools.h
%: %.c %.h
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(filter %.c,$^) $(LIBS)
.gitignore: Makefile
@for x in $(TOOLS) '*.o' '*.swp'; do \