]> git.sur5r.net Git - i3/i3/blob - debian/rules
debian: use debian/i3-wm.manpages instead of manuall installing manpages
[i3/i3] / debian / rules
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3 # Sample debian/rules that uses debhelper.
4 # This file was originally written by Joey Hess and Craig Small.
5 # As a special exception, when this file is copied by dh-make into a
6 # dh-make output file, you may use that output file without restriction.
7 # This special exception was added by Craig Small in version 0.37 of dh-make.
8
9 # Uncomment this to turn on verbose mode.
10 #export DH_VERBOSE=1
11
12 config.status: configure
13         dh_testdir
14         touch $@
15
16 build: build-arch build-indep
17
18 build-arch: build-stamp
19 build-indep: build-stamp
20
21 build-stamp:
22         dh_testdir
23
24         # Add here commands to compile the package.
25         $(MAKE) TERM_EMU=x-terminal-emulator
26         $(MAKE) -C man
27         $(MAKE) -C docs
28
29         touch $@
30
31 clean: 
32         dh_testdir
33         dh_testroot
34         rm -f build-stamp
35
36         # Add here commands to clean up after the build process.
37         [ ! -f Makefile ] || $(MAKE) distclean
38
39         dh_clean 
40
41 install: build
42         dh_testdir
43         dh_testroot
44         dh_clean -k 
45         dh_installdirs
46
47         # Add here commands to install the package into debian/i3-wm
48         $(MAKE) DESTDIR=$(CURDIR)/debian/i3-wm/ install
49
50 # Build architecture-independent files here.
51 binary-indep: build install
52 # We have nothing to do by default.
53
54 # Build architecture-dependent files here.
55 binary-arch: build install
56         dh_testdir
57         dh_testroot
58         dh_installchangelogs 
59         dh_installdocs
60         dh_installexamples
61         dh_installdebconf       
62         dh_installinit
63         dh_installman
64         dh_installwm
65         dh_link
66         dh_strip --dbg-package=i3-wm-dbg
67         dh_compress
68         dh_fixperms
69         dh_installdeb
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