From 0838dae2ff5497ff46884a4acaacc44022e35b10 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 11 Oct 2016 15:53:12 +0200 Subject: "make clean" nun ohne git --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6392938..64152ba 100644 --- a/Makefile +++ b/Makefile @@ -46,7 +46,9 @@ install: all install -D -m0644 sound-cutter.1 $(DESTDIR)$(MANDIR)/man1/sound-cutter.1 clean: - git clean -x -d -f + ls | \ + grep "^\($(shell cat .gitignore | sed 's|\.|\\.|; s|\*|.*|; s|$$|\\|' | tr '\n' '\|' )\)\$$" | \ + xargs -r rm dist: clean git status --porcelain 2> /dev/null | grep -q "\S" && (git add .; git commit -m"neue Version: $(VERSION)") || true -- cgit v1.2.3-54-g00ecf