Hacker News new | ask | show | jobs
by flukus 2853 days ago
Pandoc (or latex) + make + iNotifyWait work really well together for WYSIWYG like editing too:

  watch: $(ALL)
    while true; do \
    clear; \
    make $(WATCH); \
      inotifywait -qr -e close_write .; \
    done
"make watch WATCH=build" will now compile documents on every save. Works well for single documents, collections of documents or entire websites.
1 comments

I've been using a JS script[1] to watch directories, but this seems neater. Would you mind sharing the whole makefile?

[1] https://gist.github.com/timpulver/0d01285952b97deb70df6104cc...