debpkg := cl-$(pkg)
debpkg-tests := $(debpkg)-tests
-
clc-source := usr/share/common-lisp/source
clc-systems := usr/share/common-lisp/systems
clc-files := $(clc-source)/$(pkg)
configure: configure-stamp
configure-stamp:
dh_testdir
- # Add here commands to configure the package.
touch configure-stamp
build-stamp: configure-stamp
dh_testdir
- # Add here commands to compile the package.
(cd tests; make)
touch build-stamp
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
- # Add here commands to clean up after the build process.
$(MAKE) clean
(cd tests; make clean)
rm -f debian/$(debpkg).postinst.* debian/$(debpkg).prerm.*
install: build
dh_testdir
dh_testroot
- dh_clean -k
+ dh_prep
dh_installdirs --all $(clc-systems) $(clc-source)
-
- # Add here commands to install the package into debian/uffi.
dh_installdirs -p $(debpkg) $(doc-dir) $(clc-files)/src
dh_install $(pkg).asd $(clc-files)
dh_install "src/*.lisp" $(clc-files)/src
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.
binary-indep: build install
dh_testdir -i
dh_testroot -i
dh_md5sums -i
dh_builddeb -i
-# Build architecture-dependent files here.
binary-arch: build install
dh_testdir -a
dh_testroot -a