File: rules

package info (click to toggle)
visualboyadvance 1.8.0.dfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 12,196 kB
  • sloc: cpp: 93,502; ansic: 48,351; sh: 3,561; makefile: 381; lex: 72; yacc: 60; sed: 16
file content (31 lines) | stat: -rwxr-xr-x 707 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- --without-mmx

override_dh_auto_build:
	for i in $$(ls po/*.po | sed 's/.po//'); do \
		msgfmt -o $$i.gmo $$i.po; \
	done
	dh_auto_build

override_dh_install:
	find .
	dh_install

override_dh_installman:
	help2man src/sdl/VisualBoyAdvance \
		-n VisualBoyAdvance -s 1 -N \
		-o $(CURDIR)/debian/VisualBoyAdvance.1
	sed -i -e 's/src\/sdl\///' $(CURDIR)/debian/VisualBoyAdvance.1
	dh_installman

override_dh_installchangelogs:
	cat ChangeLog ChangeLog.1.7.1 ChangeLog.1.7 ChangeLog.1.5.1 > debian/ChangeLog
	dh_installchangelogs