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