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