From 5f06f804b19a68abbbad51e3e3630df16bfe64de Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Sat, 10 Sep 2011 01:15:38 -0400 Subject: [PATCH] cleaning up gitignore and Makefile so that they don't have to be updated every time a new .c file is added --- .gitignore | 16 ++++++---------- Makefile | 2 +- 2 files changed, 7 insertions(+), 11 deletions(-) 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)