chiark
/
gitweb
/
~ian
/
chiark-tcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changelog: finalise 1.3.2
[chiark-tcl.git]
/
debian
/
rules
diff --git
a/debian/rules
b/debian/rules
index 9a62e2b8809713e1f28fda735c8a5bf6c51e607b..f065f68d4fb414ce649dab7becf63a018650d15e 100755
(executable)
--- a/
debian/rules
+++ b/
debian/rules
@@
-1,7
+1,7
@@
#!/usr/bin/make -f
# chiark-tcl - various Tcl bindings and extensions
#!/usr/bin/make -f
# chiark-tcl - various Tcl bindings and extensions
-# Copyright 2006 Ian Jackson
+# Copyright 2006
-2012
Ian Jackson
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
@@
-14,9
+14,7
@@
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
-# along with this library; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-# 02110-1301, USA.
+# along with this library; if not, see <http://www.gnu.org/licenses/>.
majversion=1
majversion=1
@@
-28,14
+26,31
@@
docdir=usr/share/doc/$(docpackage)
tclh:=$(firstword $(wildcard /usr/include/tcl8.*/tcl.h))
tclversion:=$(patsubst /usr/include/tcl%/tcl.h,%,$(tclh))
tclh:=$(firstword $(wildcard /usr/include/tcl8.*/tcl.h))
tclversion:=$(patsubst /usr/include/tcl%/tcl.h,%,$(tclh))
+tcl_versions= 8.5 8.6 8.7
+
+march := $(shell dpkg-architecture -q DEB_HOST_MULTIARCH)
+libsubdir = /$(march)
+
+garch := $(shell dpkg-architecture -q DEB_HOST_GNU_TYPE)
+ifneq ($(garch),)
+
+ifeq ($(origin CC),default)
+export CC=$(garch)-gcc
+endif
+
+endif # $garch
+
define checkdir
test -f hbytes/hbytes.tct
endef
define checkdir
test -f hbytes/hbytes.tct
endef
-build:
+build: build-arch build-indep
+build-arch:
$(checkdir)
$(MAKE) prefix=/usr VERSION=$(majversion) TCL_VERSION=$(tclversion)
$(checkdir)
$(MAKE) prefix=/usr VERSION=$(majversion) TCL_VERSION=$(tclversion)
+build-indep:
+
clean:
$(checkdir)
$(MAKE) clean
clean:
$(checkdir)
$(MAKE) clean
@@
-47,7
+62,7
@@
binary-indep:
binary-arch: checkroot build
$(checkdir)
-rm -rf debian/$(docpackage) debian/$(libpackage)
binary-arch: checkroot build
$(checkdir)
-rm -rf debian/$(docpackage) debian/$(libpackage)
- install -d debian/$(libpackage)/usr/lib
+ install -d debian/$(libpackage)/usr/lib
$(libsubdir)
install -d debian/$(docpackage)/usr/share/doc/$(docpackage)
set -e; for f in lintian; do \
install -d debian/$(docpackage)/usr/share/doc/$(docpackage)
set -e; for f in lintian; do \
@@
-56,7
+71,7
@@
binary-arch: checkroot build
debian/$(libpackage)/usr/share/$$f/overrides/$(libpackage); \
done
debian/$(libpackage)/usr/share/$$f/overrides/$(libpackage); \
done
- cp */*.so debian/$(libpackage)/usr/lib/.
+ cp */*.so debian/$(libpackage)/usr/lib
$(libsubdir)
/.
set -e; for f in */*.[ch]; do \
perl debian/extractdoc <$$f \
set -e; for f in */*.[ch]; do \
perl debian/extractdoc <$$f \
@@
-91,4
+106,8
@@
checkroot:
$(checkdir)
dh_testroot
$(checkdir)
dh_testroot
+debian/tests/control: debian/regenerate-autopkgtests debian/rules
+ $(MAKE) debian-substvars
+ $< $(tcl_versions)
+
.PHONY: binary binary-arch binary-indep clean checkroot
.PHONY: binary binary-arch binary-indep clean checkroot