From 300d1296fb0f8f1b6bd16f977e2167442338343d Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sat, 21 Sep 2013 18:10:08 -0400 Subject: Create a target that tests alternative configurations. --- maintMakefile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'maintMakefile') diff --git a/maintMakefile b/maintMakefile index e3eda37..1836629 100644 --- a/maintMakefile +++ b/maintMakefile @@ -184,10 +184,41 @@ scm-update: get-config/texinfo.tex get-config/config.guess get-config/config.sub update: po-update scm-update +# ---------------------------------- # +# Alternative configuration checks. # +# ---------------------------------- # + +.PHONY: check-alt-config +check-alt-config: \ + checkcfg.--disable-job-server \ + checkcfg.--disable-load \ + checkcfg.--without-guile \ + checkcfg.CPPFLAGS^-DNO_OUTPUT_SYNC \ + checkcfg.CPPFLAGS^-DNO_ARCHIVES + +checkcfg.%: distdir + @ rm -rf $(distdir)/_build \ + && mkdir $(distdir)/_build \ + && cd $(distdir)/_build \ + && echo "Testing configure with $(subst ^,=,$*)" \ + && ../configure --srcdir=.. $(subst ^,=,$*) \ + $(AM_DISTCHECK_CONFIGURE_FLAGS) $(DISTCHECK_CONFIGURE_FLAGS) \ + CFLAGS='$(AM_CFLAGS)' \ + && $(MAKE) $(AM_MAKEFLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) check + + +.PHONY: update +update: po-update scm-update + + ## --------------- ## ## Sanity checks. ## ## --------------- ## +# Before we build a distribution be sure we run our local checks +#distdir: local-check + # Checks that don't require Git. Run 'changelog-check' last as # previous test may reveal problems requiring new ChangeLog entries. local-check: po-check changelog-check -- cgit v1.2.3