summaryrefslogtreecommitdiff
path: root/maintMakefile
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2013-09-21 18:10:08 -0400
committerPaul Smith <psmith@gnu.org>2013-09-21 18:10:08 -0400
commit300d1296fb0f8f1b6bd16f977e2167442338343d (patch)
treee1e413420a68a278295562e5a7c4233d2c737c4f /maintMakefile
parent822f8dae415cb5da2ad27ab7e26033f6b9ad5b48 (diff)
downloadgunmake-300d1296fb0f8f1b6bd16f977e2167442338343d.tar.gz
Create a target that tests alternative configurations.
Diffstat (limited to 'maintMakefile')
-rw-r--r--maintMakefile31
1 files changed, 31 insertions, 0 deletions
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