File: rules

package info (click to toggle)
fonts-cwtex 1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 89,440 kB
  • sloc: makefile: 24
file content (34 lines) | stat: -rwxr-xr-x 871 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
#!/usr/bin/make -f

%:
	dh $@

override_dh_auto_build: patch_center-cwheib.stamp
	dh_auto_build

override_dh_auto_clean: unpatch_center-cwheib
	dh_auto_clean

override_dh_installchangelogs:
	dh_installchangelogs Changes-en.txt

patch_center-cwheib.stamp: patch_center-cwheib
	touch patch_center-cwheib.stamp

patch_center-cwheib:
	# patch center/cwheib.ttf
	if test -f $(CURDIR)/debian/bspatch/cwheib_1.0_to_1.1a.bsdiff; then \
		if test ! -f center/cwheib.ttf.debsave; then \
			mv center/cwheib.ttf center/cwheib.ttf.debsave; \
			bspatch center/cwheib.ttf.debsave center/cwheib.ttf $(CURDIR)/debian/bspatch/cwheib_1.0_to_1.1a.bsdiff; \
		fi; \
	fi

unpatch_center-cwheib:
	if test -f center/cwheib.ttf.debsave; then \
		mv -f center/cwheib.ttf.debsave center/cwheib.ttf; \
	fi
	rm -f patch_center-cwheib.stamp

override_dh_builddeb:
	dh_builddeb -- -Zxz -Sextreme -z9