r11567: Automated commit for cluck debian-version-0.1-1
[cluck.git] / debian / rules
1 #!/usr/bin/make -f
2
3 pkg             := cluck
4 debpkg          := cl-$(pkg)
5
6 clc-source      := usr/share/common-lisp/source
7 clc-systems     := usr/share/common-lisp/systems
8 clc-files       := $(clc-source)/$(pkg)
9 clc-tests       := $(clc-source)/$(pkg-tests)
10
11 configure: configure-stamp
12 configure-stamp:
13         dh_testdir
14         touch configure-stamp
15
16
17 build: build-stamp
18
19 build-stamp: configure-stamp 
20         dh_testdir
21         touch build-stamp
22
23 clean:
24         dh_testdir
25         dh_testroot
26         rm -f build-stamp configure-stamp
27         dh_clean
28
29 install: build
30         dh_testdir
31         dh_testroot
32         dh_clean -k
33         dh_installdirs --all $(clc-systems) $(clc-source) 
34
35         # Add here commands to install the package into debian/uffi.
36         dh_installdirs -p $(debpkg) $(doc-dir) $(clc-files)/src
37         dh_install $(pkg).asd $(clc-files)
38         dh_install "src/*.lisp" $(clc-files)/src
39         dh_link $(clc-files)/$(pkg).asd $(clc-systems)/$(pkg).asd
40
41 # Build architecture-independent files here.
42 binary-indep: build install
43
44 # Build architecture-dependent files here.
45 binary-arch: build install
46         dh_testdir
47         dh_testroot
48         dh_installdocs rt-doc.txt
49         dh_installexamples rt-test.lisp
50         dh_installchangelogs
51         dh_strip
52         dh_compress
53         dh_fixperms
54         dh_installdeb
55         dh_shlibdeps
56         dh_gencontrol
57         dh_md5sums
58         dh_builddeb
59
60 binary: binary-indep binary-arch
61 .PHONY: build clean binary-indep binary-arch binary install configure