summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranck Cuny <franckcuny@gmail.com>2016-07-02 21:03:44 -0700
committerFranck Cuny <franckcuny@gmail.com>2016-07-02 21:03:44 -0700
commit89398e7e8c6192593fb01f8acb2af1beff004379 (patch)
tree2b6c36b7f7abccd974e77c4fba1c44d0cfdea8b8
parentAdd target to deploy the site to gh-pages. (diff)
downloadlumberjaph-89398e7e8c6192593fb01f8acb2af1beff004379.tar.gz
After publish delete the build dir if it exists
Diffstat (limited to '')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9fa4bbf..44f0876 100644
--- a/Makefile
+++ b/Makefile
@@ -31,4 +31,4 @@ publish: build
git symbolic-ref HEAD refs/heads/master
git reset --mixed
- rm rf $(DEPLOY_DIR)
+ [ -d $(DEPLOY_DIR) ] && rm -rf $(DEPLOY_DIR)