From: Dan White Date: Sat, 21 Jan 2012 22:06:24 +0000 (-0600) Subject: Generator for .gitignore X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=2412006c43c1ad4c91df175b443ac437bb5035d9;p=waeda-sym.git Generator for .gitignore --- diff --git a/Makefile b/Makefile index f985c68..1687e4e 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,17 @@ -DJSYMS=$(shell find . -name '*.dwboxsym') +DJ_SRC=$(wildcard */*.dwboxsym) +DJ_SYM=$(DJ_SRC:.dwboxsym=.sym) -syms: $(DJSYMS:.dwboxsym=.sym) +SYMS=$(DJ_SYM) +default: syms .gitignore + +syms: $(SYMS) + +.gitignore: $(SYMS) + cat .gitignore.base > .gitignore && for f in $(SYMS); do echo $$f >> .gitignore; done + %.sym: %.dwboxsym ./dwboxsym $< > $@