More fun* with Git and make

Don Marti <[email protected]> Thu, 1 May 2014 14:04:19 -0700
Newsgroups gmane.linux.elitists
Message-ID <[email protected]>
Some of you showed up for this...
  https://lwn.net/Articles/589196/

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                    
http://zgp.org/~dmarti/
[email protected]
_______________________________________________
Do not Cc: anyone else on mail sent to this list.  The list server is set for maximum one recipient.
linux-elitists mailing list
[email protected]
http://zgp.org/cgi-bin/mailman/listinfo/linux-elitists