Skip to content

Commit

Permalink
Clean /tmp and $TMPDIR in make clean
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitaliy Vlasov authored and jakubgs committed Oct 17, 2019
1 parent b8d3ef3 commit bf088de
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,17 @@ _fix-node-perms: ##@prepare Fix permissions so that directory can be cleaned

clean: SHELL := /bin/sh
clean: _fix-node-perms ##@prepare Remove all output folders
git clean -dxf -f
echo "Cleaning status-react repo ..."; \
git clean -dxf -f; \
echo "Cleaning Yarn/Metro caches in temp dirs ..."; \
for d in "$$TMPDIR" "/tmp"; do \
if [ -d "$$d" ]; then \
pushd $$TMPDIR; \
rm -rf ./*metro*; \
rm -rf ./*yarn*; \
popd; \
fi; \
done

watchman-clean: export _NIX_ATTR := targets.watchman.shell
watchman-clean: ##@prepare Delete repo directory from watchman
Expand Down

0 comments on commit bf088de

Please sign in to comment.