a21e6e8207904765da92f0fa8b641157b4d9aacc
[pubmed.git] / debian / rules
1 #!/usr/bin/make -f
2
3 pkg     := pubmed
4 debpkg  := cl-pubmed
5
6 clc-source      := usr/share/common-lisp/source
7 clc-systems     := usr/share/common-lisp/systems
8 clc-pubmed      := $(clc-source)/$(pkg)
9 doc-dir         := usr/share/doc/$(debpkg)
10
11 configure: configure-stamp
12 configure-stamp:
13         dh_testdir
14         touch configure-stamp
15
16 build: build-stamp
17
18 build-stamp: configure-stamp 
19         dh_testdir
20         touch build-stamp
21
22 clean:
23         dh_testdir
24         dh_testroot
25         rm -f build-stamp configure-stamp
26         rm -f debian/cl-pubmed.postinst.* debian/cl-pubmed.prerm.*
27         dh_clean
28
29 install: build
30         dh_testdir
31         dh_testroot
32         dh_prep
33         dh_installdirs $(clc-systems) $(clc-pubmed)
34         dh_install pubmed.asd $(shell echo *.lisp) $(clc-pubmed)
35         dh_link $(clc-pubmed)/pubmed.asd $(clc-systems)/pubmed.asd
36
37 binary-indep: build install
38         dh_testdir -i
39         dh_testroot -i
40         dh_installdocs -i
41         dh_installchangelogs -i
42         dh_strip -i
43         dh_compress -i
44         dh_fixperms -i
45         dh_installdeb -i
46         dh_gencontrol -i
47         dh_md5sums -i
48         dh_builddeb -i
49
50 binary-arch: build install
51
52 binary: binary-indep binary-arch
53 .PHONY: build clean binary-indep binary-arch binary install configure
54