#-----------------------------------------------------------------------------# # 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= 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) #-----------------------------------------------------------------------------#