Skip to content

Commit

Permalink
Add actions for the gitclean target.
Browse files Browse the repository at this point in the history
  • Loading branch information
dsp committed Aug 11, 2009
1 parent 5f962f0 commit 495a5ab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build/build.mk
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ svnclean-work:
done

gitclean-work:
@echo "We don't know how to clean Git checkouts yet."
@if (test ! -f '.git/info/exclude' || grep -s "git-ls-files" .git/info/exclude); then \
(echo "Rebuild .git/info/exclude" && echo '*.o' > .git/info/exclude && git svn propget svn:ignore | grep -v config.nice >> .git/info/exclude); \
fi; \
git clean -X -f -d;

.PHONY: $(ALWAYS) snapshot

0 comments on commit 495a5ab

Please sign in to comment.