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