cleaning up gitignore and Makefile so that they don't have to be updated every time a new .c file is added

This commit is contained in:
Dan Buch 2011-09-10 01:15:38 -04:00
parent 7cb0c4aab5
commit 5f06f804b1
2 changed files with 7 additions and 11 deletions

16
.gitignore vendored
View File

@ -1,10 +1,6 @@
ex1
ex3
ex4
ex5
ex6
ex7
ex8
ex9
ex10
ex11
*
!*.c
!Makefile
!README.md
!*.py

View File

@ -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)