File: rules

package info (click to toggle)
ttf2ufm 3.4.4~r2%2Bgbp-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,472 kB
  • sloc: ansic: 13,913; perl: 1,847; sh: 555; makefile: 152
file content (40 lines) | stat: -rwxr-xr-x 1,391 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
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

DPKG_EXPORT_BUILDFLAGS = 1

export DEB_CFLAGS_MAINT_APPEND  = -Wno-incompatible-pointer-types

include /usr/share/dpkg/default.mk
include /usr/share/dpkg/buildflags.mk

%:
	dh $@ --no-parallel

override_dh_auto_clean:
	make veryclean

override_dh_auto_install:
	dh_auto_install
	rm -rf $(CURDIR)/debian/ttf2ufm/usr/share/ttf2ufm/app/ \
	       $(CURDIR)/debian/ttf2ufm/usr/share/ttf2ufm/other/ \
	       $(CURDIR)/debian/ttf2ufm/usr/share/ttf2ufm/encodings/russian/ \
	       $(CURDIR)/debian/ttf2ufm/usr/share/ttf2ufm/encodings/bulgarian/ \
	       $(CURDIR)/debian/ttf2ufm/usr/share/ttf2ufm/encodings/README.html \
	       $(CURDIR)/debian/ttf2ufm/usr/share/ttf2ufm/scripts/html2man \
	       $(CURDIR)/debian/ttf2ufm/usr/share/ttf2ufm/scripts/inst_* \
	       $(CURDIR)/debian/ttf2ufm/usr/share/ttf2ufm/scripts/mk_rel \
	       $(CURDIR)/debian/ttf2ufm/usr/share/ttf2ufm/scripts/unhtml
	find $(CURDIR)/debian/ttf2ufm/usr/share/ttf2ufm/ -type f -maxdepth 1 -mindepth 1 -delete

override_dh_installdocs:
	dh_installdocs
	mv $(CURDIR)/debian/ttf2ufm/usr/share/ttf2ufm/scripts/convert.cfg.sample \
	   $(CURDIR)/debian/ttf2ufm/usr/share/doc/ttf2ufm/
	chmod 640 $(CURDIR)/debian/ttf2ufm/usr/share/doc/ttf2ufm/convert.cfg.sample

override_dh_installchangelogs:
	dh_installchangelogs CHANGES