File: rules

package info (click to toggle)
xkeyboard-config 2.5.1-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 8,808 kB
  • sloc: sh: 3,516; makefile: 488; ansic: 433; perl: 382; ruby: 207
file content (40 lines) | stat: -rwxr-xr-x 1,278 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/make -f

xkb_base := /usr/share/X11/xkb

override_dh_autoreconf:
	dh_autoreconf -- sh -c 'intltoolize -c -f && autoreconf -vfi'

override_dh_auto_configure:
	dh_auto_configure -- \
	  --with-xkb-rules-symlink=xfree86,xorg \
	  --with-xkb-base=$(xkb_base) \
	  --disable-runtime-deps

override_dh_auto_install:
	# Regular deb:
	$(MAKE) -C build install DESTDIR=$(CURDIR)/debian/xkb-data

	# Treat the udeb as an exact copy, but remove messages/pkg-config/man-pages:
	cp -r $(CURDIR)/debian/xkb-data/* $(CURDIR)/debian/xkb-data-udeb
	rm -rf $(CURDIR)/debian/xkb-data-udeb/usr/share/locale
	rm -rf $(CURDIR)/debian/xkb-data-udeb/usr/share/man
	rm -rf $(CURDIR)/debian/xkb-data-udeb/usr/share/pkgconfig

	# Now try and save some space, by getting rid of comments (in
	# non-XML files, let's be cautious), then of multiple spaces:
	find $(CURDIR)/debian/xkb-data-udeb/ ! -name '*.xml' -type f -print0 \
	  | xargs -0 perl -i -pe 's,//.*$$,,'
	find $(CURDIR)/debian/xkb-data-udeb/usr/share/X11 -type f -print0 \
	  | xargs -0 perl -i -pe 's/[ \t]+/ /g'

# Work around quilt's removing empty files:
override_dh_quilt_unpatch:
	dh_quilt_unpatch
	touch rules/base.o_k.part

override_dh_builddeb:
	dh_builddeb -- -Zxz

%:
	dh $@ --with quilt,autoreconf --builddirectory=build/