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