Availability:built-in
 make_library_index(+Directory, 
+ListOfPatterns)
make_library_index(+Directory, 
+ListOfPatterns)MKINDEX.pl, this predicate creates INDEX.pl 
for Directory, indexing all files that match one of the file 
patterns in ListOfPatterns.
Sometimes library packages consist of one public load file and a 
number of files used by this load file, exporting predicates that should 
not be used directly by the end user. Such a library can be placed in a 
sub-directory of the library and the files containing public 
functionality can be added to the index of the library. As an example we 
give the XPCE library's MKINDEX.pl, including the public 
functionality of trace/browse.pl to the autoloadable 
predicates for the XPCE package.
:- make_library_index('.',
                      [ '*.pl',
                        'trace/browse.pl'
                      ]).