Hi,
I have the following Makefile. However, the "make" program will stop
if it encounters any error when compiling the .c file. I'm wondering
if it is possible to compile the next file without stopping even if it
encounters an error.
Thanks,
Peng
.PHONY: all clean
MAINS = $(wildcard *.c)
TARGETS = $(subst .c,.exe,$(MAINS))
all: $(TARGETS)
$(TARGETS): %.exe : %.c
gcc $< -o $@
clean:
@$(RM) *.o *.exe
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make