diff --git a/.gitignore b/.gitignore index 24128c8..10d5414 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +1,6 @@ -ex1 -ex3 -ex4 -ex5 -ex6 -ex7 -ex8 -ex9 -ex10 -ex11 +* + +!*.c +!Makefile +!README.md +!*.py diff --git a/Makefile b/Makefile index 83959bb..bf1e2c6 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ CFLAGS=-Wall -g -EXERCISES = ex1 ex3 ex4 ex5 ex6 ex7 ex8 ex9 ex10 ex11 +EXERCISES = $(patsubst %.c,%,$(shell ls ex*.c)) all: $(EXERCISES)