X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=debian%2Frules;h=3b3bb574950d04572b7dc1cc6c0c81ce5a5b6d8f;hb=0cdca6533651d928b0bb489c66d89131d2119ff2;hp=a96513c130bf4a17643be4d7b5702ac1a03d1731;hpb=bdb966b22ea563a7dfa1f464a1b6cb6d8b5a712c;p=uffi.git diff --git a/debian/rules b/debian/rules index a96513c..3b3bb57 100755 --- a/debian/rules +++ b/debian/rules @@ -11,7 +11,7 @@ clc-systems := usr/share/common-lisp/systems clc-files := $(clc-source)/$(pkg) clc-tests := $(clc-source)/$(pkg-tests) doc-dir := usr/share/doc/$(debpkg) -lib-dir := usr/lib +lib-dir := usr/lib/uffi configure: configure-stamp configure-stamp: @@ -25,7 +25,7 @@ build: build-stamp build-stamp: configure-stamp dh_testdir # Add here commands to compile the package. - (cd tests; make linux) + (cd tests; make) touch build-stamp clean: @@ -36,6 +36,7 @@ clean: -$(MAKE) clean (cd tests; make clean) rm -f debian/$(debpkg).postinst.* debian/$(debpkg).prerm.* + rm -f doc/cl-uffi.pdf.gz dh_clean install: build @@ -55,13 +56,14 @@ install: build dh_install doc/html $(doc-dir) rm -rf doc/html cp doc/uffi.pdf doc/cl-uffi.pdf + rm -f doc/cl-uffi.pdf.gz # ensure file not present before making gz gzip -9 doc/cl-uffi.pdf dh_install doc/cl-uffi.pdf.gz $(doc-dir) dh_installdirs -p $(debpkg-tests) $(clc-tests)/tests $(lib-dir) dh_install -p $(debpkg-tests) $(pkg-tests).asd $(clc-tests) - dh_install -p $(debpkg-tests) "tests/*.lisp" $(clc-tests)/tests - dh_install -p $(debpkg-tests) "tests/uffi-c-test-lib.so" $(lib-dir) + dh_install -p $(debpkg-tests) tests/*.lisp tests/*.c $(clc-tests)/tests + dh_install -p $(debpkg-tests) tests/*.so $(lib-dir) dh_link -p $(debpkg-tests) $(clc-tests)/$(pkg-tests).asd $(clc-systems)/$(pkg-tests).asd # Build architecture-independent files here.