8ee6693af07db128624ee3ccd96b6cea3ee29eb1
[kmrcl.git] / debian / rules
1 #!/usr/bin/make -f
2
3 pkg             := kmrcl
4 pkg-tests       := $(pkg)-tests
5 debpkg          := cl-$(pkg)
6
7 clc-source      := usr/share/common-lisp/source
8 clc-systems     := usr/share/common-lisp/systems
9 clc-files       := $(clc-source)/$(pkg)
10 clc-tests       := $(clc-source)/$(pkg-tests)
11
12 tests-files     := tests.lisp
13 source-files    := $(filter-out $(tests-files),$(wildcard *.lisp))
14
15
16 build: build-arch build-indep
17
18 build-arch:
19
20 build-indep:
21
22 clean:
23         dh_testdir
24         dh_testroot
25         dh_clean
26
27 install: build
28         dh_testdir
29         dh_testroot
30         dh_prep
31         dh_installdirs
32         dh_install $(pkg).asd $(source-files) $(clc-files)
33         dh_install $(pkg-tests).asd $(tests-files) $(clc-tests)
34
35 binary-indep: install
36         dh_testdir
37         dh_testroot
38         dh_installdocs
39         dh_installchangelogs
40         dh_lisp
41         dh_compress
42         dh_fixperms
43         dh_installdeb
44         dh_gencontrol
45         dh_md5sums
46         dh_builddeb
47
48 binary-arch:
49
50 binary: binary-indep
51
52
53 .PHONY: build clean binary-indep binary-arch binary install