Initial import of FiveAM code. This is exactly equal to to bese-2004@common-lisp...
[fiveam.git] / debian / rules
1 #!/usr/bin/make -f
2
3 export DH_COMPAT=4
4
5 pkg             := fiveam
6 debpkg          := cl-$(pkg)
7
8
9 clc-source      := usr/share/common-lisp/source
10 clc-systems     := usr/share/common-lisp/systems
11 clc-files       := $(clc-source)/$(pkg)
12 doc-dir         := usr/share/doc/$(debpkg)
13
14
15 configure: configure-stamp
16
17 configure-stamp:
18         dh_testdir
19         # Add here commands to configure the package.
20 #       touch configure-stamp
21
22 build: build-stamp
23
24 build-stamp: configure-stamp 
25         dh_testdir
26         # Add here commands to compile the package.
27 #       touch build-stamp
28
29 clean:
30         dh_testdir
31         dh_testroot
32         rm -f build-stamp configure-stamp
33         # Add here commands to clean up after the build process.
34         rm -rf debian/postinst.* debian/prerm.* debian/$(debpkg)
35         dh_clean
36
37 install: build
38         dh_testdir
39         dh_testroot
40         dh_clean -k
41         # Add here commands to install the package into debian/pkg.
42         dh_installdirs
43
44         # Install sources
45         dh_install $(pkg).asd $(clc-files)
46         cp -r src debian/$(debpkg)/$(clc-files)
47         cp -r t debian/$(debpkg)/$(clc-files)
48         find debian/$(debpkg)/$(clc-files) -name .arch-ids | xargs rm -r
49         dh_link $(clc-files)/$(pkg).asd $(clc-systems)/$(pkg).asd
50
51 # Build architecture-independent files here.
52 binary-indep: build install
53
54 binary-arch: build install
55         dh_testdir
56         dh_testroot
57         dh_installdocs README
58         dh_installchangelogs
59 #       dh_installemacsen
60 #       dh_installexamples
61         dh_strip
62         dh_compress
63         dh_fixperms
64         dh_installdeb
65         dh_shlibdeps
66         dh_gencontrol
67         dh_md5sums
68         dh_builddeb
69
70 binary: binary-indep binary-arch
71 .PHONY: build clean binary-indep binary-arch binary install configure