Skip to content

Commit fba4af9

Browse files
committed
Add make sample-watch
1 parent 7b81b1d commit fba4af9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

claat/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,9 @@ $(OUTDIR)/claat-%: $(SRCS) VERSION
6464

6565
sample: $(OUTDIR)/claat
6666
$(OUTDIR)/claat export -o ../sample/ ../sample/codelab.md
67+
68+
sample-watch: sample
69+
# This is no good, because serve will keep running in the background even after Ctrl-C:
70+
# cd ../sample && ../claat/bin/claat serve & && echo codelab.md | entr ../claat/bin/claat export codelab.md
71+
# 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..
72+
cd ../sample && echo codelab.md | entr -rs "../claat/bin/claat export codelab.md && ../claat/bin/claat serve"

0 commit comments

Comments
 (0)