r2662: *** empty log message ***
[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
21         touch configure-stamp
22
23
24 build: build-stamp
25
26 build-stamp: configure-stamp 
27         dh_testdir
28
29         # Add here commands to compile the package.
30
31         touch build-stamp
32
33 clean:
34         dh_testdir
35         dh_testroot
36         rm -f build-stamp configure-stamp
37         # Add here commands to clean up after the build process.
38         rm -f debian/cl-lml.postinst.* debian/cl-lml.prerm.*
39         dh_clean
40
41 install: build
42         dh_testdir
43         dh_testroot
44         dh_clean -k
45         dh_installdirs --all $(clc-systems) $(clc-source) 
46         dh_installdirs -p $(debpkg) $(doc-dir) $(clc-lml)/mcl 
47         # Add here commands to install the package into debian/lml.
48         dh_install lml.system lml.asd $(clc-systems)
49         dh_install $(shell echo *.cl) $(clc-lml)
50         dh_install docs/* $(doc-dir)
51
52 # Build architecture-independent files here.
53 binary-indep: build install
54
55
56 # Build architecture-dependent files here.
57 binary-arch: build install
58         dh_testdir
59         dh_testroot
60 #       dh_installdebconf       
61         dh_installdocs
62 #       dh_installexamples
63 #       dh_installmenu
64 #       dh_installlogrotate
65 #       dh_installemacsen
66 #       dh_installpam
67 #       dh_installmime
68 #       dh_installinit
69 #       dh_installcron
70 #       dh_installman
71 #       dh_installinfo
72 #       dh_undocumented
73         dh_installchangelogs
74         dh_strip
75         dh_compress
76         dh_fixperms
77 #       dh_makeshlibs
78         dh_installdeb
79 #       dh_perl
80         dh_shlibdeps
81         dh_gencontrol
82         dh_md5sums
83         dh_builddeb
84
85 binary: binary-indep binary-arch
86 .PHONY: build clean binary-indep binary-arch binary install configure
87