use libapache2-mod-lisp
[cl-modlisp.git] / debian / rules
1 #!/usr/bin/make -f
2
3 pkg     := modlisp
4 debpkg  := cl-modlisp
5
6
7 clc-source      := usr/share/common-lisp/source
8 clc-systems     := usr/share/common-lisp/systems
9 clc-modlisp     := $(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         touch configure-stamp
19
20
21 build: build-stamp
22
23 build-stamp: configure-stamp 
24         dh_testdir
25         # Add here commands to compile the package.
26         touch build-stamp
27
28 clean:
29         dh_testdir
30         dh_testroot
31         rm -f build-stamp configure-stamp
32         # Add here commands to clean up after the build process.
33         rm -f debian/cl-modlisp.postinst.* debian/cl-modlisp.prerm.*
34         dh_clean
35
36 install: build
37         dh_testdir
38         dh_testroot
39         dh_clean -k
40         # Add here commands to install the package into debian/modlisp.
41         dh_installdirs $(clc-systems) $(clc-modlisp) 
42         dh_install modlisp.asd $(shell echo *.lisp) $(clc-modlisp)
43         dh_link $(clc-modlisp)/modlisp.asd $(clc-systems)/modlisp.asd
44
45 binary-indep: build install
46         dh_testdir
47         dh_testroot
48         dh_installdocs doc/readme.html
49         dh_installexamples 
50         dh_installchangelogs ChangeLog
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
61 binary-arch: build install
62
63 binary: binary-indep binary-arch
64 .PHONY: build clean binary-indep binary-arch binary install configure
65