#
# $Id$
#
-# Written by Keith Marshall <keithmarshall@users.sourceforge.net>
-# Copyright (C) 2010, 2011, 2013, MinGW.org Project
+# Written by Keith Marshall <keith@users.osdn.me>
+# Copyright (C) 2010, 2011, 2013, 2018, MinGW.org Project
#
#
# Makefile template for generating mingw-get distribution manifests.
# MinGW Project, accept liability for any damages, however caused,
# arising from the use of this software.
#
-all: @mingw_ac_subdirs@ update-references
+all: check @mingw_ac_subdirs@ update-references
@SET_MAKE@
@mingw_ac_subdirs@: FORCE
#
all-distfiles: all
+# Before building a set of catalogues, for publication, we should run
+# the test suite to validate all source documents; the following rules
+# provide the interface which is needed to run the test suite.
+#
+srcdir = @srcdir@
+check: tests/Makefile
+ cd tests; $(MAKE_RECURSIVE) $@
+
+${srcdir}/tests/configure: ${srcdir}/tests/configure.ac VERSION.m4
+ cd ${srcdir}/tests; autoconf
+
+tests/Makefile: ${srcdir}/tests/configure
+ test -d tests || mkdir tests
+ cd tests; ../${srcdir}/tests/configure
+
# To support optimised "mingw-get update", the package lists must be
# dynamically updated, to correctly identify the latest issue of each
# individual package catalogue file; the following rule, (which MUST
update-local-references: @mingw_ac_subdirs@
# Approiately authenticated users may publish updated catalogues
-# via the SourceForge file release system.
+# via the OSDN file storage and download system.
#
-FRS_CATALOGUE_HOST = frs.sourceforge.net
-FRS_CATALOGUE_ROOT = /home/frs/project/mingw
-FRS_CATALOGUE_PATH = $(FRS_CATALOGUE_ROOT)/Installer/mingw-get/catalogue
+FRS_CATALOGUE_HOST = storage.osdn.net
+FRS_CATALOGUE_ROOT = /storage/groups/m/mi/mingw
+FRS_CATALOGUE_PATH = $(FRS_CATALOGUE_ROOT)/.catalogue
FRS_CATALOGUE = $(FRS_CATALOGUE_HOST):$(FRS_CATALOGUE_PATH)