CFLAGS=-Wall -g -DNDEBUG EXERCISES = $(patsubst %.c,%,$(shell ls ex*.c | grep -v ex19)) all: $(EXERCISES) $(MAKE) -f ex19.mk test: all $(MAKE) -f ex19.mk test clean: rm -f $(EXERCISES) $(MAKE) -f ex19.mk clean .PHONY: all test clean