File: rules

package info (click to toggle)
qosmic 1.6.0%2Bv20240202-5
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 3,248 kB
  • sloc: cpp: 22,473; xml: 31; makefile: 23
file content (32 lines) | stat: -rwxr-xr-x 640 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
#!/usr/bin/make -f

export DH_VERBOSE = 1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

include /usr/share/dpkg/pkg-info.mk
export DEB_VERSION
export FLAM3_VERSION = $(shell dpkg-query -W libflam3-dev | awk '{print $$2}' )

execute_before_dh_auto_build:
# lrelease does not work on some ports
ifneq ($(DEB_HOST_ARCH), m68k)
ifneq ($(DEB_HOST_ARCH), sh4)
ifneq ($(DEB_HOST_ARCH), sparc64)
	# Build translation files from source
	lrelease qosmic.pro
endif
endif
endif

execute_before_dh_auto_clean:
ifneq ($(DEB_HOST_ARCH), m68k)
ifneq ($(DEB_HOST_ARCH), sh4)
ifneq ($(DEB_HOST_ARCH), sparc64)
	rm -f ts/*.qm
endif
endif
endif


%:
	dh $@