box-o-sand/Makefile

23 lines
353 B
Makefile

CFLAGS=-Wall -Wextra -pedantic-errors -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