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