Did you know ... Search Documentation:
Pack inotify -- prolog/in_make.pl
PublicShow source

This library simplifies the development cycle by reloading source files immediately when they are saved, regardless of the process that saved the file (i.e., this may be an external editor). To use it, add the following to the load file of your project or your init.pl file.

:- if(exists_source(library(in_make))).
:- use_module(library(in_make)).
:- initialization(in_make).
:- endif.

Note that the files are reloaded by the in_make thread. If reloading affects thread-local properties these may not be visible in all threads. Examples are global variables, thread_local predicates and Prolog flags.

 in_make is det
Setup monitoring all non-system loaded Prolog source files and run make/0 if any of them changes. If a file from a new directory is loaded, this directory is added to the set of monitored directories.
See also
- in_nomake/0 for stopping the service
 in_nomake
Disable automatic reloading of modified source files.