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