30e5ea6503e7fe5d8047f7b84c5de8b8924f3429
[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 binary: build install
42         dh_testdir
43         dh_testroot
44         dh_installdocs
45         dh_installmenu
46         dh_link
47         dh_compress
48         dh_fixperms
49         dh_installdeb
50         dh_gencontrol
51         dh_md5sums
52         dh_builddeb
53
54 .PHONY: build clean binary install configure
55