mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-20 20:03:44 +00:00
37 lines
768 B
Plaintext
37 lines
768 B
Plaintext
#-----------------------------------------------------------------------------#
|
|
|
|
MGNUCFLAGS=-g
|
|
|
|
#-----------------------------------------------------------------------------#
|
|
|
|
# .PRECIOUS: %.mod %.c %.o %_init.c %.no %.nu %_init.nl %_init.no
|
|
|
|
%_init.c: Entry
|
|
|
|
%.out: %
|
|
{ [ -f $*.inp ] && cat $*.inp; } | ./$< > $@ 2>&1;
|
|
|
|
%.exp: %.nu
|
|
{ [ -f $*.inp ] && cat $*.inp; } | ./$< > $@ 2>&1;
|
|
|
|
%.res: %.exp %.out
|
|
-rm -f $@
|
|
diff -u $*.exp $*.out > $@
|
|
|
|
#-----------------------------------------------------------------------------#
|
|
|
|
clean: clean_out clean_exp clean_res
|
|
|
|
clean_mc: clean_c clean_o clean_out clean_res
|
|
|
|
clean_out:
|
|
rm -f *.out
|
|
|
|
clean_exp:
|
|
rm -f *.exp
|
|
|
|
clean_res:
|
|
rm -f *.res
|
|
|
|
#-----------------------------------------------------------------------------#
|