Skip to content

Commit

Permalink
Disable demo from main build
Browse files Browse the repository at this point in the history
  • Loading branch information
davesnx committed Mar 4, 2024
1 parent be5f882 commit f5a2666
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
16 changes: 14 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,23 @@ lib-test: ## Run library tests

.PHONY: demo
demo: ## Run demo executable
$(DUNE) exec demo/index.exe --action-stdout-on-success=print --display-separate-messages --force --terminal-persistence=clear-on-rebuild
$(DUNE) exec demo/index.exe \
--profile=demo \
--action-stdout-on-success=print \
--display-separate-messages \
--force \
--terminal-persistence=clear-on-rebuild \
--watch

.PHONY: demo-watch
demo-watch: ## Run demo executable
$(DUNE) exec -w demo/index.exe --action-stdout-on-success=print --display-separate-messages --force --terminal-persistence=clear-on-rebuild
$(DUNE) exec demo/index.exe \
--watch \
--action-stdout-on-success=print \
--display-separate-messages \
--force \
--terminal-persistence=clear-on-rebuild \
--profile=demo

.PHONY: subst
subst: ## Run dune substitute
Expand Down
2 changes: 2 additions & 0 deletions demo/dune
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
(executable
(name index)
(enabled_if
(= %{profile} "demo"))
(libraries quickjs))

0 comments on commit f5a2666

Please sign in to comment.