]> git.sur5r.net Git - i3/i3status/blob - debian/rules
Update debian packaging
[i3/i3status] / 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 build: build-stamp
13
14 build-stamp:
15         dh_testdir
16         # Build with xmobar support
17         $(MAKE) distclean
18         $(MAKE) EXTRA_CFLAGS="-DXMOBAR"
19         cp $(CURDIR)/i3status $(CURDIR)/i3status-xmobar
20         # Build with dzen support
21         $(MAKE) distclean
22         $(MAKE) EXTRA_CFLAGS="-DDZEN"
23         touch $@
24
25 clean: 
26         dh_testdir
27         dh_testroot
28         rm -f build-stamp config.status
29         [ ! -f Makefile ] || $(MAKE) distclean
30         dh_clean 
31
32 install: build
33         dh_testdir
34         dh_testroot
35         dh_clean -k
36         dh_installdirs
37         $(MAKE) DESTDIR=$(CURDIR)/debian/i3status/ install
38         install -m 755 $(CURDIR)/i3status-xmobar $(CURDIR)/debian/i3status/usr/bin/i3status-xmobar
39
40 # Build architecture-independent files here.
41 binary-indep: build install
42 # We have nothing to do by default.
43
44 # Build architecture-dependent files here.
45 binary-arch: build install
46         dh_testdir
47         dh_testroot
48         dh_installchangelogs
49         dh_installdocs
50         dh_installexamples
51         dh_installman
52         dh_link
53         dh_strip
54         dh_compress
55         dh_fixperms
56         dh_installdeb
57         dh_shlibdeps
58         dh_gencontrol
59         dh_md5sums
60         dh_builddeb
61
62 binary: binary-indep binary-arch
63 .PHONY: build clean binary-indep binary-arch binary install