[SCM] Debian packaging for libntl - Number Theory Library branch, master, updated. e41c78dc6ef2572ee21fc0a0ffb90bc2154ac16c

Bernhard R. Link brlink at debian.org
Tue Aug 9 15:43:15 UTC 2011


The following commit has been merged in the master branch:
commit e41c78dc6ef2572ee21fc0a0ffb90bc2154ac16c
Author: Bernhard R. Link <brlink at debian.org>
Date:   Tue Aug 9 17:43:11 2011 +0200

    avoid debian/rules build rebuilding everything all the time (also makes it easier to replace some setup steps with static variants)

diff --git a/debian/rules b/debian/rules
index 4c0f9e3..4c1c429 100755
--- a/debian/rules
+++ b/debian/rules
@@ -31,8 +31,25 @@ include/NTL/con%ig.h src/src/m%ileout src/make%ile src/c%ileout: src/configure s
 		NTL_GMP_LIP=on NTL_STD_CXX=on SHARED=on \
 		NTL_GF2X_LIB=off
 
-build-arch-stamp: src/makefile include/NTL/config.h src/cfileout
-	$(MAKE) -C src
+include/NTL/mach_desc.h: src/makefile include/NTL/config.h src/cfileout
+	# TODO: better make that file static and check it is correct than
+	# generating it this way and perhaps miss something (extended doubles)
+	$(MAKE) -C src setup1
+
+src/GetTime.c:
+	# This should be the correct one:
+	cp src/GetTime2.c src/GetTime.c
+
+include/NTL/gmp_aux.h: src/makefile include/NTL/config.h src/cfileout \
+			include/NTL/mach_desc.h
+	# this also generates src/lip_gmp_aux_impl.h, which is not used
+	# but src/makefile requires it anyway, so it cannot be removed here
+	$(MAKE) -C src setup3
+
+build-arch-stamp: src/makefile include/NTL/config.h src/cfileout \
+		include/NTL/mach_desc.h src/GetTime.c include/NTL/gmp_aux.h
+	# ntl.a is quite a misnomer, this is the actual idempotent build target
+	$(MAKE) -C src ntl.a
 	touch $@
 
 clean:

-- 
Debian packaging for libntl - Number Theory Library



More information about the debian-science-commits mailing list