Files
mercury/extras/xml/Mmakefile
Julien Fischer f7837e2f94 Fix copyright notices in some Mmakefiles.
extras/*/Mmakefile:
    As above.
2025-05-05 15:50:03 +10:00

40 lines
1.1 KiB
Makefile

#-----------------------------------------------------------------------------#
# vim: ts=8 sw=8 noexpandtab ft=make
#-----------------------------------------------------------------------------#
# Copyright (C) 2000, 2002 The University of Melbourne.
# Copyright (C) 2015, 2018, 2022, 2025 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
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 \
)