5 # Written by Keith Marshall <keithmarshall@users.sourceforge.net>
6 # Copyright (C) 2013, MinGW.org Project
9 # Makefile template for generating mingw-get distribution manifests.
11 # Project: @PACKAGE_TARNAME@
12 # Version: @PACKAGE_VERSION@
15 # This is free software. Permission is granted to copy, modify and
16 # redistribute this software, under the provisions of the GNU General
17 # Public License, Version 3, (or, at your option, any later version),
18 # as published by the Free Software Foundation; see the file COPYING
19 # for licensing details.
21 # Note, in particular, that this software is provided "as is", in the
22 # hope that it may prove useful, but WITHOUT WARRANTY OF ANY KIND; not
23 # even an implied WARRANTY OF MERCHANTABILITY, nor of FITNESS FOR ANY
24 # PARTICULAR PURPOSE. Under no circumstances will the author, or the
25 # MinGW Project, accept liability for any damages, however caused,
26 # arising from the use of this software.
29 vpath VERSION.m4 @srcdir@/..
40 xml_datarootdir = ${srcdir}/..
44 check: @XERCES_C_TOOLS@
45 ./xmlcheck$(EXEEXT) ${srcdir}/pkgspec.xsd ${xml_datarootdir}/*/*.xml \
46 2> xmlcheck.log && rm -f xmlcheck.log \
47 || { cat xmlcheck.log; exit 1; }
50 @for msg in $(NO_XERCES_C_TOOLS_MSG); do echo $$msg; done; false
52 NO_XERCES_C_TOOLS_MSG = "" \
53 "This test suite requires the Xerces-C++ SDK, but it appears that" \
54 "this has not been installed on your system." "" \
55 "Please install a copy of this SDK, which is compatible with your" \
56 "system C++ compiler, if you wish to run this test suite." ""
58 xerces-c-tools: xmlcheck$(EXEEXT)
59 xmlcheck$(EXEEXT): xmlcheck.$(OBJEXT)
60 $(CXX) $(CXXFLAGS) -o $@ $(LDFLAGS) $^ $(LIBS)
64 $(CXX) -MMD -MP -c $(CPPFLAGS) $(CXXFLAGS) -o $@ $<
66 configure: configure.ac VERSION.m4
67 cd ${srcdir}; autoconf
69 config.status: configure
70 ./config.status --recheck
72 Makefile: config.status Makefile.in
76 rm -f *.$(OBJEXT) xmlcheck$(EXEEXT)
78 # $RCSfile$: end of file