X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=chiark-tcl.git;a=blobdiff_plain;f=debian%2Frules;h=a9f57a69f2a09307525d77e209e700cda25b4608;hp=323a3f37535646472035b34a94a172f689f0e39b;hb=0a9545b82e4d628345e979c47d5f0a162b8af2bb;hpb=8b291a86f7c19181f36c5eaf1da7c2009bdec87f diff --git a/debian/rules b/debian/rules index 323a3f3..a9f57a6 100755 --- a/debian/rules +++ b/debian/rules @@ -25,13 +25,16 @@ libpackage=libtcl-chiark-$(majversion) docpackage=libtcl-chiark-$(majversion) docdir=usr/share/doc/$(docpackage) +tclh:=$(firstword $(wildcard /usr/include/tcl8.*/tcl.h)) +tclversion:=$(patsubst /usr/include/tcl%/tcl.h,%,$(tclh)) + define checkdir test -f hbytes/hbytes.tct endef build: $(checkdir) - $(MAKE) prefix=/usr VERSION=$(majversion) + $(MAKE) prefix=/usr VERSION=$(majversion) TCL_VERSION=$(tclversion) clean: $(checkdir) @@ -65,12 +68,14 @@ binary-arch: checkroot build dh_installchangelogs dh_strip + dh_makeshlibs dh_shlibdeps -Xchiark_tcl_adns -Xchiark_tcl_crypto # be consistent about what we compress: dh_compress -X.c.txt -X.h.txt dh_fixperms + dh_installdeb dh_gencontrol dh_md5sums dh_builddeb