Skip to content

Commit

Permalink
Add make sample-watch
Browse files Browse the repository at this point in the history
  • Loading branch information
vorburger committed Oct 28, 2023
1 parent 7b81b1d commit fba4af9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions claat/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,9 @@ $(OUTDIR)/claat-%: $(SRCS) VERSION

sample: $(OUTDIR)/claat
$(OUTDIR)/claat export -o ../sample/ ../sample/codelab.md

sample-watch: sample
# This is no good, because serve will keep running in the background even after Ctrl-C:
# cd ../sample && ../claat/bin/claat serve & && echo codelab.md | entr ../claat/bin/claat export codelab.md
# TODO This would be a lot more convenient if serve had a flag to prevent it from keep opening the browser, and could be given the root dir as argument..
cd ../sample && echo codelab.md | entr -rs "../claat/bin/claat export codelab.md && ../claat/bin/claat serve"

0 comments on commit fba4af9

Please sign in to comment.