Files
mercury/samples/Mmakefile
Julien Fischer 9c96387183 Fix formatting of sample programs.
samples/Mmakefile:
    Add the beer program to list of targets.

samples/*.m:
    Convert (C->T;E) to (if C then T else E).

    Delete trailing whitespace.

    Use predmode syntax instead of separate pred and mode
    declarations.

samples/interpreter.m:
    Fix up one predicate that had some clauses that used
    DCGs and others that used state variables.

    Don't use the name 'IO' for something that isn't the I/O state.

samples/diff/*.m:
samples/c_interface/c_calls_mercury/mercury_main.m:
samples/c_interface/short_example.m:
    Delete trailing whitespace.
2015-12-14 16:06:13 +11:00

31 lines
937 B
Plaintext

#-----------------------------------------------------------------------------#
# vim: ts=8 sw=8 noexpandtab
#-----------------------------------------------------------------------------#
# This source file is hereby placed in the public domain. -fjh (the author).
#-----------------------------------------------------------------------------#
# samples/Mmake - this is the main part of the Makefile
# for building the Mercury sample programs.
# To build these programs, first install the Mercury compiler,
# type `mmake depend', and then type `mmake'.
PROGS= hello beer cat calculator calculator2 sort eliza ultra_sub e \
interpreter expand_terms
DEPENDS=$(PROGS:%=%.depend)
MAIN_TARGET=all
#-----------------------------------------------------------------------------#
# targets
.PHONY: all
all : $(PROGS)
.PHONY: depend
depend: $(DEPENDS)
#-----------------------------------------------------------------------------#