c3d4775f09c116ffc4f9df10d2753b841b6ebf9b
[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         # Add here commands to install the package into debian/lml.
46         dh_installdirs $(clc-systems) $(clc-lml) $(doc-dir)
47         dh_install lml.system lml.asd $(clc-systems)
48         dh_install $(shell echo *.cl) $(clc-lml)
49
50 # Build architecture-independent files here.
51 binary-indep: build install
52
53
54 # Build architecture-dependent files here.
55 binary-arch: build install
56         dh_testdir
57         dh_testroot
58 #       dh_installdebconf       
59         dh_installdocs
60 #       dh_installexamples
61 #       dh_installmenu
62 #       dh_installlogrotate
63 #       dh_installemacsen
64 #       dh_installpam
65 #       dh_installmime
66 #       dh_installinit
67 #       dh_installcron
68 #       dh_installman
69 #       dh_installinfo
70 #       dh_undocumented
71         dh_installchangelogs
72         dh_strip
73         dh_compress
74         dh_fixperms
75 #       dh_makeshlibs
76         dh_installdeb
77 #       dh_perl
78         dh_shlibdeps
79         dh_gencontrol
80         dh_md5sums
81         dh_builddeb
82
83 binary: binary-indep binary-arch
84 .PHONY: build clean binary-indep binary-arch binary install configure
85