File: rules

package info (click to toggle)
poedit 3.0-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 11,032 kB
  • sloc: cpp: 53,735; sh: 4,198; makefile: 227; xml: 40
file content (31 lines) | stat: -rwxr-xr-x 813 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 DH_VERBOSE=1

export LDFLAGS += -Wl,--as-needed
export LDFLAGS += -Wl,-z,relro
ifeq ($(DEB_HOST_ARCH),mips64el)
	export CXXFLAGS += -mxgot
endif

ifneq (,$(filter $(DEB_HOST_ARCH),armel mipsel m68k powerpc riscv64 sh4))
export LDFLAGS += -Wl,--no-as-needed -latomic -Wl,--as-needed
endif

%:
	dh $@

override_dh_auto_configure:
	./bootstrap
	dh_auto_configure -- --disable-silent-rules --enable-debug

override_dh_auto_install:
	dh_auto_install
	mv debian/tmp/usr/bin/poedit debian/tmp/usr/bin/poeditor
	mv debian/tmp/usr/share/man/man1/poedit.1 debian/tmp/usr/share/man/man1/poeditor.1
	# Debian bug #989949
	rm -f debian/tmp/usr/share/icons/hicolor/icon-theme.cache
	find debian/tmp/usr/share/locale -type d -empty -delete

override_dh_installchangelogs:
	dh_installchangelogs NEWS