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
tcmdifgen: Replace deprecated `use IO;' with `use IO::File'.
[chiark-tcl.git]
/
debian
/
rules
diff --git
a/debian/rules
b/debian/rules
index f9ed503fb1637fdfe7b2cf0b3016607821366f5c..3675728eee9fcb4459de8b2e73df4b19a7bd9e8d 100755
(executable)
--- a/
debian/rules
+++ b/
debian/rules
@@
-26,11
+26,12
@@
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))
+march := $(shell dpkg-architecture -q DEB_HOST_MULTIARCH)
+libsubdir = /$(march)
+
garch := $(shell dpkg-architecture -q DEB_HOST_GNU_TYPE)
ifneq ($(garch),)
garch := $(shell dpkg-architecture -q DEB_HOST_GNU_TYPE)
ifneq ($(garch),)
-libsubdir = /$(garch)
-
ifeq ($(origin CC),default)
export CC=$(garch)-gcc
endif
ifeq ($(origin CC),default)
export CC=$(garch)-gcc
endif