diff --git a/debian/rules b/debian/rules index 6bbe7dd37..b354eb405 100644 --- a/debian/rules +++ b/debian/rules @@ -8,6 +8,8 @@ # This is the debhelper compatability version to use. export DH_COMPAT=3 +version=`cat configure.ac|grep AM_INIT|cut -d"," -f2|cut -d")" -f1|cut -d" " -f2` + configure: configure-stamp configure-stamp: dh_testdir @@ -48,11 +50,13 @@ install: build # Move the appropriate files into the development package.. mv $(CURDIR)/debian/tmp/usr/lib/libhamlib.so $(CURDIR)/debian/hamlib-dev/usr/lib/ mv $(CURDIR)/debian/tmp/usr/lib/*.a $(CURDIR)/debian/hamlib-dev/usr/lib/ + mv $(CURDIR)/debian/tmp/usr/lib/*.la $(CURDIR)/debian/hamlib-dev/usr/lib/ mv $(CURDIR)/debian/tmp/usr/include/hamlib $(CURDIR)/debian/hamlib-dev/usr/include/ # Move the appropriate files into the runtime package.. - mv $(CURDIR)/debian/tmp/usr/lib/*.so $(CURDIR)/debian/hamlib1/usr/lib/ - mv $(CURDIR)/debian/tmp/usr/lib/*.la $(CURDIR)/debian/hamlib1/usr/lib/ + mv $(CURDIR)/debian/tmp/usr/lib/libhamlib-$(version).so.1 $(CURDIR)/debian/hamlib1/usr/lib/ + mv $(CURDIR)/debian/tmp/usr/lib/libhamlib-$(version).so.1.0.0 $(CURDIR)/debian/hamlib1/usr/lib/ + mv $(CURDIR)/debian/tmp/usr/lib/hamlib-*so $(CURDIR)/debian/hamlib1/usr/lib/ # Move the appropriate files into the documentation package.. # mv $(CURDIR)/doc/html $(CURDIR)/debian/hamlib-doc/usr/share/doc/hamlib-doc/ @@ -62,6 +66,7 @@ install: build mv $(CURDIR)/debian/tmp/usr/bin/rigctl $(CURDIR)/debian/hamlib-utils/usr/bin/ mv $(CURDIR)/debian/tmp/usr/bin/rotctl $(CURDIR)/debian/hamlib-utils/usr/bin/ mv $(CURDIR)/debian/tmp/usr/share/man/man1/rigctl.1 $(CURDIR)/debian/hamlib-utils/usr/share/man/man1 + mv $(CURDIR)/debian/tmp/usr/share/man/man1/rotctl.1 $(CURDIR)/debian/hamlib-utils/usr/share/man/man1 # Build architecture-independent files here. binary-indep: build install