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