r4534: Auto commit for Debian build
[lml.git] / debian / rules
1 #!/usr/bin/make -f
2
3 export DH_COMPAT=4
4
5 pkg     := lml
6 debpkg  := cl-lml
7
8
9 clc-source      := usr/share/common-lisp/source
10 clc-systems     := usr/share/common-lisp/systems
11 clc-lml := $(clc-source)/$(pkg)
12
13 doc-dir         := usr/share/doc/$(debpkg)
14
15
16 configure: configure-stamp
17 configure-stamp:
18         dh_testdir
19         # Add here commands to configure the package.
20         touch configure-stamp
21
22
23 build: build-stamp
24
25 build-stamp: configure-stamp 
26         dh_testdir
27         # Add here commands to compile the package.
28         touch build-stamp
29
30 clean:
31         dh_testdir
32         dh_testroot
33         rm -f build-stamp configure-stamp
34         # Add here commands to clean up after the build process.
35         rm -f debian/cl-lml.postinst.* debian/cl-lml.prerm.*
36         dh_clean
37
38 install: build
39         dh_testdir
40         dh_testroot
41         dh_clean -k
42         # Add here commands to install the package into debian/lml.
43         dh_installdirs $(clc-systems) $(clc-lml) $(doc-dir)
44         dh_install lml.asd lml-base.asd $(shell echo *.lisp) $(clc-lml)
45         dh_install $(shell echo doc/*.html) $(doc-dir)
46         dh_link $(clc-lml)/lml-base.asd $(clc-systems)/lml-base.asd
47         dh_link $(clc-lml)/lml.asd $(clc-systems)/lml.asd
48
49 # Build architecture-independent files here.
50 binary-indep: build install
51
52
53 # Build architecture-dependent files here.
54 binary-arch: build install
55         dh_testdir
56         dh_testroot
57 #       dh_installdebconf       
58         dh_installdocs
59         dh_installexamples doc/Makefile doc/make.lisp $(shell echo doc/*.lml)
60 #       dh_installmenu
61 #       dh_installlogrotate
62 #       dh_installemacsen
63 #       dh_installpam
64 #       dh_installmime
65 #       dh_installinit
66 #       dh_installcron
67 #       dh_installman
68 #       dh_installinfo
69 #       dh_undocumented
70         dh_installchangelogs
71         dh_strip
72         dh_compress
73         dh_fixperms
74 #       dh_makeshlibs
75         dh_installdeb
76 #       dh_perl
77         dh_shlibdeps
78         dh_gencontrol
79         dh_md5sums
80         dh_builddeb
81
82 binary: binary-indep binary-arch
83 .PHONY: build clean binary-indep binary-arch binary install configure
84