File: rules

package info (click to toggle)
awf-gtk 3.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,788 kB
  • sloc: ansic: 5,914; sh: 1,588; makefile: 115; xml: 76
file content (19 lines) | stat: -rw-r--r-- 596 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --with bash-completion

override_dh_auto_configure:
	dh_auto_configure -- --enable-only-gtk3

execute_before_dh_install:
	cp -ar data/icons/ icons-gtk3/
	for file in icons-gtk3/*/*/awf.png; do mv $$file `dirname $$file`/awf-gtk3.png; done
	for file in icons-gtk3/*/*/awf.svg; do mv $$file `dirname $$file`/awf-gtk3.svg; done
	for file in src/po/*.po; do \
		code=`basename "$$file" .po`; \
		mkdir -p locale-gtk3/$$code/LC_MESSAGES/; \
		msgfmt src/po/$$code.po -o locale-gtk3/$$code/LC_MESSAGES/awf-gtk3.mo; \
	done