cf07a520165278c887def0f2baf252c9931ce396
[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:
17
18 clean:
19         dh_testdir
20         dh_testroot
21         dh_clean
22
23 install: build
24         dh_testdir
25         dh_testroot
26         dh_prep
27         dh_installdirs
28         dh_install $(pkg).asd $(source-files) $(clc-files)
29         dh_install $(pkg-tests).asd $(tests-files) $(clc-tests)
30
31 binary-indep: install
32         dh_testdir
33         dh_testroot
34         dh_installdocs
35         dh_installchangelogs
36         dh_lisp
37         dh_compress
38         dh_fixperms
39         dh_installdeb
40         dh_gencontrol
41         dh_md5sums
42         dh_builddeb
43
44 binary-arch:
45
46 binary: binary-indep
47
48
49 .PHONY: build clean binary-indep binary-arch binary install