mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-21 12:23:44 +00:00
This file-specific setting will override a default setting of expandtabs
in $HOME/.vimrc.
*/Makefile:
*/Mmakefile:
As above.
tests/hard_coded/.gitignore:
Don't ignore the purity subdir. This ignore must have been left over
from when purity.m was a test in hard_coded, not hard_coded/purity,
and it ignored an executable, not a directory.
33 lines
881 B
Makefile
33 lines
881 B
Makefile
#-----------------------------------------------------------------------------#
|
|
# vim: ts=8 sw=8 noexpandtab
|
|
#-----------------------------------------------------------------------------#
|
|
# Copyright (C) 2002-2007 The University of Melbourne
|
|
# Ralph Becket <rafe@cs.mu.oz.au>
|
|
#
|
|
# To build do:
|
|
#
|
|
# $ make
|
|
#
|
|
# Ensure you have built and installed the lex and regex libraries.
|
|
# Change the following line as appropriate if you installed them
|
|
# elsewhere:
|
|
#
|
|
#EXTRA_LIB_DIR := $(INSTALL_PREFIX)/lib/mercury
|
|
EXTRA_LIB_DIR := ../lib/mercury
|
|
|
|
EXTRA_LIBRARIES = lex regex
|
|
EXTRA_LIBRARIES_FLAGS = $(EXTRA_LIBRARIES:%= --ml %)
|
|
|
|
MAIN_TARGET = all
|
|
|
|
.PHONY: all check
|
|
|
|
all: test_regex
|
|
|
|
%: %.m
|
|
mmc --make --mld $(EXTRA_LIB_DIR) $(EXTRA_LIBRARIES_FLAGS) $@
|
|
|
|
check: test_regex
|
|
./test_regex < test_regex.in > test_regex.res
|
|
diff -u test_regex.exp test_regex.res && echo "Passed" || echo "Failed"
|