3 # chiark-tcl - various Tcl bindings and extensions
4 # Copyright 2006 Ian Jackson
6 # This program is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU General Public License as
8 # published by the Free Software Foundation; either version 2 of the
9 # License, or (at your option) any later version.
11 # This program is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this library; if not, write to the Free Software
18 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
24 libpackage=libtcl-chiark-$(majversion)
25 docpackage=libtcl-chiark-$(majversion)
26 docdir=usr/share/doc/$(docpackage)
29 test -f hbytes/hbytes.tct
34 $(MAKE) prefix=/usr VERSION=$(majversion)
39 rm -rf *~ debian/tmp debian/*~ debian/files* debian/substvars*
44 binary-arch: checkroot build
46 -rm -rf debian/$(docpackage) debian/$(libpackage)
47 install -d debian/$(libpackage)/usr/lib
48 install -d debian/$(docpackage)/usr/share/doc/$(docpackage)
50 set -e; for f in lintian linda; do \
51 install -d debian/$(libpackage)/usr/share/$$f/overrides; \
52 cp debian/$$f-overrides \
53 debian/$(libpackage)/usr/share/$$f/overrides/$(libpackage); \
56 cp */*.so debian/$(libpackage)/usr/lib/.
58 set -e; for f in */*.[ch]; do \
59 perl debian/extractdoc <$$f \
60 debian/$(docpackage)/$(docdir)/ $$f .txt; \
62 cp */*.tct debian/README debian/copyright \
63 debian/$(docpackage)/$(docdir)
68 dh_shlibdeps -Xchiark_tcl_adns -Xchiark_tcl_crypto
70 # be consistent about what we compress:
71 dh_compress -X.c.txt -X.h.txt
78 # Below here is fairly generic really
80 binary: binary-indep binary-arch
83 @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
89 .PHONY: binary binary-arch binary-indep clean checkroot