# -*- mode: Makefile; -*-
# ----------------------------------------------------------------------------
include ../../SETTINGS
include ../../SHARED
include ../SETTINGS.COMMON
# ----------------------------------------------------------------------------
# Uncomment for using the development version of lpdoc when testing...
# LIBDIR     = /home/clip/Systems/lpdoc/lib
# LPDOC      = /home/clip/Systems/lpdoc/src/lpdoc
# ----------------------------------------------------------------------------

FILEPATHS := $(FILEPATHS) \
             $(SRC)/doc/reference $(SRC)/shell $(SRC)/ciaoc $(SRC)/engine \
             $(SRC)/emacs-mode $(SRC)/etc $(SRC)/library/pillow/dist/doc \
# Useful for debugging...
#MAINOPTS  := -v $(MAINOPTS)
#COMPOPTS  := -v $(COMPOPTS)
MAIN       = ciao.pl
# Mini manual for testing. The order is very important!
#COMPONENTS = $(INSTALLATION) 
# The order is very important!

# ******** Warning: if you change this you also need to change 
# ******** ciao.el which gives an outline of the manual
COMPONENTS = \
	$(GETSTARTED) \
    DevEnv.pl \
	$(DEVENV) \
    Builtins.pl \
	$(REFCOMPONENTS) \
    IsoProlog.pl \
	$(ISOPROLOG) \
    ClassicProlog.pl \
	$(CLASSICPROLOG) \
    AnnotatedProlog.pl \
	$(ANNOTATEDPROLOG) \
    MiscProlog.pl \
	$(MISCPROLOG) \
    ExtendProlog.pl \
	$(EXTENDPROLOG) \
    Interfaces.pl \
	$(INTERFACES) \
    ADTs.pl \
	$(ADTS) \
    ciao-utilities.pl \
	$(UTILCOMPONENTS) \
    Contrib.pl \
	$(CONTRIB) \
    Append.pl \
	$(INSTALLATION) 

GETSTARTED = \
	GetStartUnix.pl \
	GetStartWin32.pl

INSTALLATION = \
    Install.pl \
    InstallWin32bin.pl \
    BeyondInstall.pl

DEVENV = \
	ciaoc.pl \
	ciaosh_doc.pl \
	debugger_doc.pl \
        debugger.pl \
	ciao-shell.pl \
	libpaths.pl \
	CiaoMode.pl

#	toplev.pl \

REFCOMPONENTS = \
    modules.pl \
    loading_code.pl \
    basiccontrol.pl \
    builtin_directives.pl \
    basic_props.pl \
    term_typing.pl \
    term_basic.pl \
    term_compare.pl \
    atomic_basic.pl \
    arithmetic.pl \
    streams_basic.pl \
    io_basic.pl \
    exceptions.pl \
    prolog_flags.pl \
    data_facts.pl \
    syntax_extensions.pl \
    io_aux.pl \
    attributes.pl \
    system_info.pl \
    default_predicates.pl

#              prolog.src \
#              examples.src 

# Should not be used, so we do not document them
# 	internals.pl \

# Other
# 	mexpand.pl \

# Taken out
#	ciaoengine.pl

ISOPROLOG = \
    iso_doc.pl \
    aggregates.pl \
    dynamic.pl \
    read.pl \
    write.pl \
    operators.pl \
    iso_byte_char.pl \
    iso_misc.pl \
    iso_incomplete.pl

CLASSICPROLOG = \
    dcg_doc.pl \
	dcg_expansion.pl \
    format.pl \
    lists.pl \
    sort.pl \
    compiler.pl \
    between.pl \
    system.pl \
    prolog_sys.pl \
    dec10_io.pl \
    old_database.pl \
    ttyout.pl \
    runtime_ops_doc.pl

#    classic_doc.pl \

ANNOTATEDPROLOG = \
    assertions_doc.pl \
    assertions_props.pl \
    regtypes_doc.pl \
    native_props.pl \
    isomodes_doc.pl \
    basicmodes_doc.pl \
    rtchecks_doc.pl

# fdtypes
#	metatypes.pl \
#    meta_props.pl \

MISCPROLOG = \
    streams.pl \
    dict.pl \
    strings.pl \
    messages.pl \
    io_alias_redirection.pl \
    atom2term.pl \
    ctrlcclean.pl \
    errhandle.pl \
    fastrw.pl \
    filenames.pl \
    symfnames.pl \
    file_utils.pl \
    file_locks.pl \
    terms.pl \
    terms_check.pl \
    terms_vars.pl \
    pretty_print.pl \
    assrt_write.pl \
    librowser.pl \
    expansion_tools.pl \
    concurrency.pl \
    conc_aggregates.pl \
    sockets.pl \
    sockets_io.pl \
    make_doc.pl \
    make_rt.pl \
    system_extra.pl

#    tokenize.pl \
#     assrt_lib.pl \
#     byrd.pl \
# 	traces.pl \
#     events.pl \
#     fly.pl \
#     listing.pl \
#     loops.pl \
#     parse_spec.pl \
#     prompt.pl

EXTENDPROLOG = \
    pure_doc.pl \
    indexer_doc.pl \
    hiord_rt.pl \
    hiordlib.pl \
    argnames_doc.pl \
    functions_doc.pl \
    global.pl \
    andprolog_doc.pl \
    andorra_doc.pl \
    det_hook_rt.pl \
    odd.pl \
    freeze.pl \
    when.pl \
    actmods_doc.pl \
    bf_doc.pl \
    id_doc.pl \
    clpq_doc.pl \
    clpr_doc.pl \
    fuzzy_doc.pl \
    ociao_doc.pl \
    class_doc.pl \
    objects_doc.pl \
    objects_rt.pl \
    remote_doc.pl 
# Driven by ociao_doc
#	ociao.pl \
#	objects.pl \
#	ociao.pl \

# Loop?
# 	class.pl \
#
#     cges.pl \


INTERFACES = \
    foreign_interface_doc.pl \
    foreign_interface_properties.pl \
    foreign_compilation.pl \
    build_foreign_interface.pl \
    davinci.pl \
    tcltk.pl \
    tcltk_low_level.pl	\
    window_class_doc.pl \
    widget_class_doc.pl \
    menu_class_doc.pl \
    canvas_class_doc.pl \
    button_class_doc.pl \
    checkbutton_class_doc.pl \
    radiobutton_class_doc.pl \
    entry_class_doc.pl \
    label_class_doc.pl \
    menubutton_class_doc.pl \
    menu_entry_class_doc.pl \
    shape_class_doc.pl \
    arc_class_doc.pl \
    oval_class_doc.pl \
    poly_class_doc.pl \
    line_class_doc.pl \
    text_class_doc.pl  \
    pillow_doc.pl \
    html.pl \
    http.pl \
    pillow_types.pl \
    persdbrt.pl \
    Examples.pl \
    factsdb_rt.pl \
    persdbrt_mysql.pl \
    pl2sql.pl \
    mysql_client.pl \
    db_client_types.pl \
    sqltypes.pl \
    persdbtr_sql.pl \
    pl2sqlinsert.pl \
    javart.pl \
    jtopl.pl \
    javasock.pl \
    emacs.pl \
    linda.pl

#    persdb_sql_common.pl \
#	db_client.pl \


ADTS = \
    arrays.pl \
    counters.pl \
    idlists.pl \
    numlists.pl \
    patterns.pl \
    graphs.pl \
    ugraphs.pl \
    wgraphs.pl \
    lgraphs.pl \
    queues.pl \
    random.pl \
    sets.pl \
    vndict.pl

#     bitcodesets.pl \
#     formulae.pl \
#     keys.pl \
#     llists.pl \
#     lsets.pl \

UTILCOMPONENTS = \
    cleandirs.pl \
    fileinfo.pl \
    viewpo.pl \
    xrefs_doc.pl \
    get_deps.pl \
    pldiff.pl \
    lpmake.pl \
    ciao_get_arch_doc.pl \
    compiler_output.pl

#	collect_modules_doc.pl

CONTRIB = \
		mycin_doc.pl \
		fd_doc.pl \
		xdr_handle.pl \
		xml_path_doc.pl \
		chartlib.pl \
		bltclass.pl \
		chartlib_errhandle.pl \
		color_pattern.pl \
		genbar1.pl \
		genbar2.pl \
		genbar3.pl \
		genbar4.pl \
		gengraph1.pl \
		gengraph2.pl \
		genmultibar.pl \
		table_widget1.pl \
		table_widget2.pl \
		table_widget3.pl \
		table_widget4.pl \
		test_format.pl \
		provrml.pl \
		boundary.pl \
		dictionary.pl \
		dictionary_tree.pl \
		error.pl \
		field_type.pl \
		field_value.pl \
		field_value_check.pl \
		generator.pl \
		generator_util.pl \
		internal_types.pl \
		io.pl \
		lookup.pl \
		parser.pl \
		parser_util.pl \
		possible.pl \
		tokeniser.pl \
	        ddlist.pl \
		time_analyzer.pl\
	        gnuplot.pl\
	        modtester.pl\
                tester.pl

# ----------------------------------------------------------------------------
