Skip to content
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.

Commit

Permalink
rm build artifacts on clean
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmatson-da committed Sep 1, 2021
1 parent f3e486c commit 1d2ec29
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ package.json
daml-ts/
.vscode
target/

daml-chess-*.dit
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ stop_all: stop_daml_server stop_operator stop_ui_server

# Release

dar := $(target_dir)/dablchess-model-$(dar_version).dar
bot := $(target_dir)/dablchess-bot-$(VERSION).tar.gz
ui := $(target_dir)/dablchess-ui-$(VERSION).zip
dar := $(target_dir)/damlchess-model-$(dar_version).dar
bot := $(target_dir)/damlchess-bot-$(VERSION).tar.gz
ui := $(target_dir)/damlchess-ui-$(VERSION).zip


$(target_dir):
Expand All @@ -106,9 +106,9 @@ $(bot): $(target_dir) $(operator_bot_dir)

$(ui): $(target_dir) $(yarn_build_log)
cd ui && yarn build
cd ui && zip -r dablchess-ui-$(VERSION).zip build
mv ui/dablchess-ui-$(VERSION).zip $@
cd ui && zip -r damlchess-ui-$(VERSION).zip build
mv ui/damlchess-ui-$(VERSION).zip $@

.PHONY: clean
clean:
rm -rf $(state_dir) $(operator_bot_dir) $(js_bindings_dir) $(target_dir)
rm -rf $(state_dir) $(operator_bot_dir) $(js_bindings_dir) $(target_dir) *.dit *.dar

0 comments on commit 1d2ec29

Please sign in to comment.