[Gmp-commit] /var/hg/gmp: Improved top-level mini-gmp make targets.
mercurial at gmplib.org
mercurial at gmplib.org
Wed Feb 29 14:44:02 CET 2012
details: /var/hg/gmp/rev/7c922b88938f
changeset: 14699:7c922b88938f
user: Niels M?ller <nisse at lysator.liu.se>
date: Wed Feb 29 14:43:58 2012 +0100
description:
Improved top-level mini-gmp make targets.
diffstat:
ChangeLog | 7 +++++++
Makefile.am | 13 ++++++++++++-
2 files changed, 19 insertions(+), 1 deletions(-)
diffs (44 lines):
diff -r 809b16c44d82 -r 7c922b88938f ChangeLog
--- a/ChangeLog Tue Feb 28 15:25:25 2012 +0100
+++ b/ChangeLog Wed Feb 29 14:43:58 2012 +0100
@@ -1,3 +1,10 @@
+2012-02-29 Niels Möller <nisse at lysator.liu.se>
+
+ * Makefile.am (check-mini-gmp): Use $(MAKE).
+ (clean-mini-gmp): New target.
+ (clean-local, distclean-local): New automake targets. Depend on
+ clean-mini-gmp.
+
2012-02-28 Niels Möller <nisse at lysator.liu.se>
* Makefile.am (check-mini-gmp): New target, for running the
diff -r 809b16c44d82 -r 7c922b88938f Makefile.am
--- a/Makefile.am Tue Feb 28 15:25:25 2012 +0100
+++ b/Makefile.am Wed Feb 29 14:43:58 2012 +0100
@@ -398,14 +398,25 @@
# | grep -q "^# *$(VERSION) *$(LIBGMP_LT_CURRENT):$(LIBGMP_LT_REVISION):$(LIBGMP_LT_AGE) *$(LIBGMPXX_LT_CURRENT):$(LIBGMPXX_LT_REVISION):$(LIBGMPXX_LT_AGE) *$(LIBMP_LT_CURRENT):$(LIBMP_LT_REVISION):$(LIBMP_LT_AGE)"
# test -z "`sed -n 's/^# *[0-9]*\.[0-9]*\.[0-9]* *\([0-9]*:[0-9]*:[0-9]*\) *\([0-9]*:[0-9]*:[0-9]*\) *\([0-9]*:[0-9]*:[0-9]*\).*/A\1\nB\2\nC\3/p' $(srcdir)/Makefile.am | grep -v 'A6:3:3\|B3:5:0\|C4:7:1' | sort | uniq -d`"
+.PHONY: check-mini-gmp clean-mini-gmp
+
check-mini-gmp:
abs_srcdir="`cd $(srcdir) && pwd`" ; \
$(MKDIR_P) mini-gmp/tests \
&& cd mini-gmp/tests \
- && make -f "$$abs_srcdir/mini-gmp/tests/Makefile" \
+ && $(MAKE) -f "$$abs_srcdir/mini-gmp/tests/Makefile" \
VPATH="$$abs_srcdir/mini-gmp/tests" \
srcdir="$$abs_srcdir/mini-gmp/tests" \
MINI_GMP_DIR="$$abs_srcdir/mini-gmp" \
LDFLAGS="-L../../.libs" \
LIBS="-lgmp -lm" \
CC="$(CC_FOR_BUILD)" EXTRA_CFLAGS="-g" check
+
+clean-mini-gmp:
+ if [ -d mini-gmp/tests ] ; then \
+ abs_srcdir="`cd $(srcdir) && pwd`" ; \
+ cd mini-gmp/tests \
+ && $(MAKE) -f "$$abs_srcdir/mini-gmp/tests/Makefile" clean ; \
+ fi
+
+clean-local: clean-mini-gmp
More information about the gmp-commit
mailing list