r11711: fix build-twice-in-a-row
[cl-readline.git] / debian / rules
1 #!/usr/bin/make -f
2
3 pkg     := readline
4 debpkg  := cl-$(pkg)
5
6 clc-source      := usr/share/common-lisp/source
7 clc-systems     := usr/share/common-lisp/systems
8 clc-files       := $(clc-source)/$(pkg)
9 doc-dir         := usr/share/doc/$(debpkg)
10 lib-dir         := usr/lib/cl-readline
11
12 source-files    := $(wildcard *.lisp)
13
14 configure: configure-stamp
15 configure-stamp:
16         dh_testdir
17         # Add here commands to configure the package.
18         touch configure-stamp
19
20
21 build: build-stamp
22
23 build-stamp: configure-stamp 
24         dh_testdir
25         # Add here commands to compile the package.
26         $(MAKE)
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 -f debian/$(debpkg).postinst.* debian/$(debpkg).prerm.*
35         rm -f *.o *.so
36         dh_clean
37
38 install: build
39         dh_testdir
40         dh_testroot
41         dh_clean -k
42         # Add here commands to install the package into debian/kmrcl.
43         dh_installdirs $(clc-systems) $(clc-files) $(clc-tests)
44         dh_install $(pkg).asd $(source-files) $(clc-files)
45         dh_link $(clc-files)/$(pkg).asd $(clc-systems)/$(pkg).asd
46         dh_install *.so $(lib-dir)
47
48 # Build architecture-independent files here.
49 binary-indep: build install
50
51
52 # Build architecture-dependent files here.
53 binary-arch: build install
54         dh_testdir
55         dh_testroot
56 #       dh_installdebconf       
57         dh_installdocs
58 #       dh_installmenu
59 #       dh_installlogrotate
60 #       dh_installemacsen
61 #       dh_installpam
62 #       dh_installmime
63 #       dh_installinit
64 #       dh_installcron
65 #       dh_installman
66 #       dh_installinfo
67 #       dh_undocumented
68         dh_installchangelogs
69         dh_strip
70         dh_compress
71         dh_fixperms
72 #       dh_makeshlibs
73         dh_installdeb
74 #       dh_perl
75         dh_shlibdeps
76         dh_gencontrol
77         dh_md5sums
78         dh_builddeb
79
80 binary: binary-indep binary-arch
81 .PHONY: build clean binary-indep binary-arch binary install configure
82