mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-26 14:54:17 +00:00
Estimated hours taken: 0.25 */Mmake: Rename `Mmake' as `Mmakefile', since using the name `Mmake' causes problems on case-insensitive file systems.
60 lines
1.3 KiB
Plaintext
60 lines
1.3 KiB
Plaintext
#-----------------------------------------------------------------------------#
|
|
|
|
main_target: check
|
|
|
|
#-----------------------------------------------------------------------------#
|
|
|
|
PROGS= \
|
|
double_underscore \
|
|
duplicate_call \
|
|
inf_recursion_lambda \
|
|
infinite_recursion \
|
|
missing_if \
|
|
pragma_source_file \
|
|
simple_code \
|
|
singleton_test \
|
|
unused_args_test \
|
|
unused_import
|
|
|
|
#-----------------------------------------------------------------------------#
|
|
|
|
# some files need to be compiled with special options
|
|
|
|
MCFLAGS = $(MCFLAGS-$*) $(EXTRA_MCFLAGS)
|
|
|
|
MCFLAGS-duplicate_call = --warn-duplicate-calls
|
|
MCFLAGS-unused_args_test = --warn-unused-args
|
|
MCFLAGS-unused_import = --warn-interface-imports
|
|
|
|
#-----------------------------------------------------------------------------#
|
|
|
|
%.res: %.exp %.err
|
|
-rm -f $@
|
|
diff -c $*.exp $*.err > $@
|
|
|
|
#-----------------------------------------------------------------------------#
|
|
|
|
DEPENDS=$(PROGS:%=%.depend)
|
|
ERRS= $(PROGS:%=%.err)
|
|
RESS= $(PROGS:%=%.res)
|
|
|
|
#-----------------------------------------------------------------------------#
|
|
|
|
depend: $(DEPENDS)
|
|
|
|
check: $(ERRS) $(RESS)
|
|
|
|
all: $(PROGS)
|
|
|
|
clean: clean_err clean_res
|
|
|
|
clean_mc: clean_c clean_o clean_err clean_res
|
|
|
|
clean_err:
|
|
rm -f *.err
|
|
|
|
clean_res:
|
|
rm -f *.res
|
|
|
|
#-----------------------------------------------------------------------------#
|