r3286: *** empty log message ***
[hyperobject.git] / debian / rules
1 #!/usr/bin/make -f
2
3 export DH_COMPAT=4
4
5 pkg     := hyperobject
6 debpkg  := cl-hyperobject
7
8
9 clc-source      := usr/share/common-lisp/source
10 clc-systems     := usr/share/common-lisp/systems
11 clc-hyperobject := $(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-hyperobject.postinst.* debian/cl-hyperobject.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/hyperobject.
44         dh_installdirs $(clc-systems) $(clc-hyperobject) $(doc-dir)
45         dh_install hyperobject.asd $(shell echo *.lisp) $(clc-hyperobject)
46         dh_link $(clc-hyperobject)/hyperobject.asd $(clc-systems)/hyperobject.asd
47
48 # Build architecture-independent files here.
49 binary-indep: build install
50         dh_testdir -i 
51         dh_testroot -i
52 #       dh_installdebconf       
53         dh_installdocs -i
54 #       dh_installexamples -i hyperobject-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 -i
66         dh_strip -i
67         dh_compress -i
68         dh_fixperms -i
69 #       dh_makeshlibs
70         dh_installdeb -i
71 #       dh_perl
72         dh_shlibdeps -i
73         dh_gencontrol -i
74         dh_md5sums -i
75         dh_builddeb -i
76
77 # Build architecture-dependent files here.
78 binary-arch: build install
79
80 binary: binary-indep binary-arch
81 .PHONY: build clean binary-indep binary-arch binary install configure
82