[linux-elitists] More fun* with Git and make

Don Marti dmarti at zgp.org
Thu May 1 14:04:19 PDT 2014

Some of you showed up for this...

One more random idea.  Instead of keeping track of
which files need to be ignored/cleaned up in _both_
.gitignore and the "clean" target in Makefile...

clean :
	find . -print0 | \
	git check-ignore -z --stdin | xargs -0 rm -f

DRY, right?

Don Marti                    
dmarti at zgp.org

More information about the linux-elitists mailing list