de6a977cfafc8a218a9378167ab3a17f478e9965
[xptest.git] / debian / rules
1 #!/usr/bin/make -f
2
3 pkg     := xptest
4 debpkg  := cl-xptest
5
6 clc-source      := usr/share/common-lisp/source
7 clc-systems     := usr/share/common-lisp/systems
8 clc-xptest      := $(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
18         touch configure-stamp
19
20
21 build: build-stamp
22
23 build-stamp: configure-stamp 
24         dh_testdir
25         # Add here commands to compile the package.
26         touch build-stamp
27
28 clean:
29         dh_testdir
30         dh_testroot
31         rm -f build-stamp configure-stamp
32         # Add here commands to clean up after the build process.
33         rm -f debian/cl-xptest.postinst.* debian/cl-xptest.prerm.*
34         dh_clean
35
36 install: build
37         dh_testdir
38         dh_testroot
39         dh_clean -k
40         # Add here commands to install the package into debian/xptest.
41         dh_installdirs $(clc-systems) $(clc-xptest)
42         dh_install xptest.asd xptestsuite.lisp $(clc-xptest)
43         dh_link $(clc-xptest)/xptest.asd $(clc-systems)/xptest.asd
44
45 # Build architecture-independent files here.
46 binary-indep: build install
47
48
49 # Build architecture-dependent files here.
50 binary-arch: build install
51         dh_testdir
52         dh_testroot
53         dh_installdocs
54         dh_installexamples xptest-example.lisp
55         dh_installchangelogs
56         dh_strip
57         dh_compress
58         dh_fixperms
59         dh_installdeb
60         dh_shlibdeps
61         dh_gencontrol
62         dh_md5sums
63         dh_builddeb
64
65 binary: binary-indep binary-arch
66 .PHONY: build clean binary-indep binary-arch binary install configure
67