]> git.sur5r.net Git - i3/i3/blob - debian/rules
Merge branch 'master' into next
[i3/i3] / debian / rules
1 #!/usr/bin/make -f
2 # vi: ts=8 sw=8 noet
3
4 DPKG_EXPORT_BUILDFLAGS = 1
5 -include /usr/share/dpkg/buildflags.mk
6
7 ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
8     NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
9     MAKEFLAGS += -j$(NUMJOBS)
10 endif
11
12 build: build-arch build-indep
13 build-arch: build-stamp
14 build-indep: build-stamp
15 build-stamp:
16         dh build
17         touch build-stamp
18
19 clean:
20         dh clean
21
22 install: build install-stamp
23 install-stamp:
24         dh install
25         touch install-stamp
26
27 binary-arch: install
28         dh binary-arch
29
30 binary-indep: install
31         dh binary-indep
32
33 binary: binary-arch binary-indep
34
35 override_dh_auto_build:
36         $(MAKE)
37         $(MAKE) -C man
38         $(MAKE) -C docs
39
40 override_dh_installchangelogs:
41         dh_installchangelogs RELEASE-NOTES-4.6
42
43 override_dh_install:
44         $(MAKE) DESTDIR=$(CURDIR)/debian/i3-wm/ install
45
46 override_dh_strip:
47         dh_strip --dbg-package=i3-wm-dbg