Automating tasks like compiling markdown or latex documents can be neatly handled using make, but you still need to write the appropriate Makefile's.
Made keeps a set of Makefile's for common tasks.
$ sudo make install
-
List available Makefile's
$ made -l
-
Yank a Makefile
$ made {template-name}