diff options
author | Erich Eckner <git@eckner.net> | 2016-10-11 15:53:12 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-10-11 15:53:36 +0200 |
commit | 0838dae2ff5497ff46884a4acaacc44022e35b10 (patch) | |
tree | 27ed15681b429b8cd9ffbdb4de6745e5e441c9aa | |
parent | 5dfad9ce9c93fac864a58be3ae87008b55149e5b (diff) | |
download | sound-cutter-0838dae2ff5497ff46884a4acaacc44022e35b10.tar.xz |
"make clean" nun ohne git
-rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |