summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-10-11 15:53:12 +0200
committerErich Eckner <git@eckner.net>2016-10-11 15:53:36 +0200
commit0838dae2ff5497ff46884a4acaacc44022e35b10 (patch)
tree27ed15681b429b8cd9ffbdb4de6745e5e441c9aa
parent5dfad9ce9c93fac864a58be3ae87008b55149e5b (diff)
downloadsound-cutter-0838dae2ff5497ff46884a4acaacc44022e35b10.tar.xz
"make clean" nun ohne git
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
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