mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-26 00:37:43 +03:00
Build test programs only when needed
Add test programs to 'check_PROGRAMS' instead of 'noinst_PROGRAMS'. Fixes bug 760457.
This commit is contained in:
@@ -235,7 +235,7 @@ if REBUILD_DOCS
|
||||
rebuild: examples.xml index.html
|
||||
.PHONY: rebuild
|
||||
|
||||
examples.xml: index.py $(noinst_PROGRAMS:=.c)
|
||||
examples.xml: index.py $(check_PROGRAMS:=.c)
|
||||
cd $(srcdir) && $(PYTHON) index.py
|
||||
$(MAKE) Makefile
|
||||
|
||||
@@ -259,14 +259,14 @@ clean-local:
|
||||
for extra in extras:
|
||||
EXTRA_DIST = EXTRA_DIST + " \\\n\t" + extra
|
||||
Makefile = Makefile + "EXTRA_DIST =%s\n\n" % (EXTRA_DIST)
|
||||
noinst_PROGRAMS=""
|
||||
check_PROGRAMS=""
|
||||
for example in examples:
|
||||
noinst_PROGRAMS = noinst_PROGRAMS + " \\\n\t" + example
|
||||
Makefile = Makefile + "noinst_PROGRAMS =%s\n\n" % (noinst_PROGRAMS)
|
||||
check_PROGRAMS = check_PROGRAMS + " \\\n\t" + example
|
||||
Makefile = Makefile + "check_PROGRAMS =%s\n\n" % (check_PROGRAMS)
|
||||
for example in examples:
|
||||
Makefile = Makefile + "%s_SOURCES = %s.c\n\n" % (example, example)
|
||||
Makefile = Makefile + "valgrind: \n\t$(MAKE) CHECKER='valgrind' tests\n\n"
|
||||
Makefile = Makefile + "tests: $(noinst_PROGRAMS)\n"
|
||||
Makefile = Makefile + "tests: $(check_PROGRAMS)\n"
|
||||
Makefile = Makefile + "\t@test -f Makefile.am || test -f test1.xml || $(LN_S) $(srcdir)/test?.xml .\n"
|
||||
Makefile = Makefile + "\t@(echo '## examples regression tests')\n"
|
||||
Makefile = Makefile + "\t@(echo > .memdump)\n"
|
||||
|
||||
Reference in New Issue
Block a user