mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-17 18:33:58 +00:00
samples/mcowsay.m:
A Mercury version of the cowsay program. It serves an more extended
example (but still small) example of how to write command line
utilities in Mercury.
samples/README.md:
Include the new sample.
samples/Mmakefile:
Include the new sample.
Put the list of sample programs in alphabetical order.
42 lines
994 B
Makefile
42 lines
994 B
Makefile
#-----------------------------------------------------------------------------#
|
|
# vim: ts=8 sw=8 noexpandtab ft=make
|
|
#-----------------------------------------------------------------------------#
|
|
# 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 = \
|
|
beer \
|
|
calculator \
|
|
calculator2 \
|
|
cat \
|
|
eliza \
|
|
e \
|
|
expand_terms \
|
|
hello \
|
|
interpreter \
|
|
mcowsay \
|
|
sort \
|
|
ultra_sub
|
|
|
|
DEPENDS=$(PROGS:%=%.depend)
|
|
|
|
MAIN_TARGET=all
|
|
|
|
#-----------------------------------------------------------------------------#
|
|
|
|
# targets
|
|
|
|
.PHONY: all
|
|
all : $(PROGS)
|
|
|
|
.PHONY: depend
|
|
depend: $(DEPENDS)
|
|
|
|
#-----------------------------------------------------------------------------#
|