r4665: *** empty log message ***
[hyperobject.git] / debian / rules
1 #!/usr/bin/make -f
2
3 pkg       := hyperobject
4 pkg-tests := $(pkg)-tests
5 debpkg    := cl-$(pkg)
6
7 clc-source      := usr/share/common-lisp/source
8 clc-systems     := usr/share/common-lisp/systems
9 clc-files       := $(clc-source)/$(pkg)
10 clc-tests       := $(clc-source)/$(pkg-tests)
11 doc-dir         := usr/share/doc/$(debpkg)
12
13 tests-files     := tests.lisp
14 source-files    := $(filter-out $(tests-files),$(wildcard *.lisp))
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/$(debpkg).postinst.* debian/$(debpkg).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-files) $(doc-dir) $(clc-tests)
45         dh_install $(pkg).asd $(source-files) $(clc-files)
46         dh_link $(clc-files)/$(pkg).asd $(clc-systems)/$(pkg).asd
47         dh_install $(pkg-tests).asd $(tests-files) $(clc-tests)
48         dh_link $(clc-tests)/$(pkg-tests).asd $(clc-systems)/$(pkg-tests).asd
49
50 # Build architecture-independent files here.
51 binary-indep: build install
52         dh_testdir -i 
53         dh_testroot -i
54 #       dh_installdebconf       
55         dh_installdocs -i
56         dh_installexamples -i $(wilcard examples/*.lisp)
57 #       dh_installmenu
58 #       dh_installlogrotate
59 #       dh_installemacsen
60 #       dh_installpam
61 #       dh_installmime
62 #       dh_installinit
63 #       dh_installcron
64 #       dh_installman
65 #       dh_installinfo
66 #       dh_undocumented
67         dh_installchangelogs -i
68         dh_strip -i
69         dh_compress -i
70         dh_fixperms -i
71 #       dh_makeshlibs
72         dh_installdeb -i
73 #       dh_perl
74         dh_shlibdeps -i
75         dh_gencontrol -i
76         dh_md5sums -i
77         dh_builddeb -i
78
79 # Build architecture-dependent files here.
80 binary-arch: build install
81
82 binary: binary-indep binary-arch
83 .PHONY: build clean binary-indep binary-arch binary install configure
84