-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathMmakefile
40 lines (31 loc) · 1.06 KB
/
Mmakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#-----------------------------------------------------------------------------#
# vim: ts=8 sw=8 noexpandtab
#-----------------------------------------------------------------------------#
# Copyright (C) 2000, 2002 The University of Melbourne.
# Copyright (C) 2015, 2018 The Mercury team.
# This file is distributed under the terms specified in COPYING.LIB.
#-----------------------------------------------------------------------------#
-include ../Mmake.params
INSTALL_PREFIX := $(INSTALL_PREFIX)/extras
MCFLAGS += --flags XML_FLAGS
include Mercury.options
.PHONY: default_target
default_target: tryit libxml
.PHONY: depend
depend: tryit.depend xml.depend
.PHONY: install
tags: $(wildcard *.m)
mtags $(wildcard *.m)
.PHONY: install
install: libxml.install
.PHONY: check
check: tryit samples/catalog samples/newsarticles.xml \
samples/newsarticles.dtd samples/newsarticles.exp
@( cd samples; \
../tryit newsarticles.xml > newsarticles.out; \
if diff -ub newsarticles.exp newsarticles.out; then \
echo "check succeeded"; \
else \
echo "check failed"; \
fi \
)