CFLAGS += -Wall -Wextra -pedantic -std=gnu99 -g -DNDEBUG EXERCISES = $(patsubst %.c,%,$(shell ls ex*.c | egrep -v "ex(19|22)")) all: $(EXERCISES) $(MAKE) -f ex19.mk $(MAKE) -f ex22.mk test: all $(MAKE) -f ex19.mk test ./test_ex24_iofunctions.sh clean: rm -f $(EXERCISES) $(MAKE) -f ex19.mk clean $(MAKE) -f ex22.mk clean .PHONY: all test clean