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