9ff92d18b7d49449489c45bbe028d20785317784
[getopt.git] / debian / rules
1 #!/usr/bin/make -f
2
3 pkg     := getopt
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 clc-tests       := $(clc-source)/$(pkg-tests)
10 doc-dir         := usr/share/doc/$(debpkg)
11
12 source-files    := $(wildcard *.lisp)
13
14 configure: configure-stamp
15 configure-stamp:
16         dh_testdir
17         touch configure-stamp
18
19
20 build: build-stamp
21
22 build-stamp: configure-stamp 
23         dh_testdir
24         touch build-stamp
25
26 clean:
27         dh_testdir
28         dh_testroot
29         rm -f build-stamp configure-stamp
30         # Clean up after the build process.
31         rm -f debian/$(debpkg).postinst.* debian/$(debpkg).prerm.*
32         dh_clean
33
34 install: build
35         dh_testdir
36         dh_testroot
37         dh_clean -k
38         # Install the package into debian/getopt.
39         dh_installdirs $(clc-systems) $(clc-files) $(clc-tests)
40         dh_install $(pkg).asd $(source-files) $(clc-files)
41         dh_link $(clc-files)/$(pkg).asd $(clc-systems)/$(pkg).asd
42
43 # Build architecture-independent files
44 binary-indep: build install
45         dh_testdir
46         dh_testroot
47         dh_installdocs
48         dh_installchangelogs
49         dh_strip
50         dh_compress
51         dh_fixperms
52         dh_installdeb
53         dh_shlibdeps
54         dh_gencontrol
55         dh_md5sums
56         dh_builddeb
57
58 # Build architecture-dependent files
59 binary-arch: build install
60
61 binary: binary-indep binary-arch
62 .PHONY: build clean binary-indep binary-arch binary install configure
63