Skip to content

Commit 34f7e68

Browse files
(DOCSP-20467): update makefile to remove build directory (#799)
1 parent 4511ddf commit 34f7e68

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ commit:
1919
local:
2020
@:
2121

22-
GIT_BRANCH=$(shell git rev-parse --abbrev-ref HEAD)
22+
GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
2323
ifeq ($(STAGING_USERNAME),)
2424
USER=$(shell whoami)
2525
else
@@ -77,6 +77,8 @@ clean-html:
7777
## Builds this branch's publishable HTML and other artifacts under
7878
## build/public
7979
publish:
80+
if [ ${GIT_BRANCH} = master ]; then rm -rf build/public; fi;
81+
rm -rf build/${GIT_BRANCH}
8082
giza make publish
8183
if [ ${GIT_BRANCH} = master ]; then mut-redirects config/redirects -o build/public/.htaccess; fi
8284

0 commit comments

Comments
 (0)