File: rules

package info (click to toggle)
mediaconch 18.03.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 15,668 kB
  • sloc: ansic: 122,490; cpp: 35,785; xml: 2,666; sh: 1,933; makefile: 276; python: 34
file content (55 lines) | stat: -rwxr-xr-x 1,139 bytes parent folder | download | duplicates (2)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/usr/bin/make -f

export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs -Wl,--as-needed
export QT_SELECT = qt5

include /usr/share/dpkg/default.mk

paths = \
	Project/GNU/CLI/ \
	Project/Qt/

auto_build_cmd =				\
	for path in $(paths); do		\
		$(1) -D"$$path";		\
	done

configure_targets = $(addprefix configure-, $(paths))


%:
	dh $@ --with=autoreconf

# override_dh_autoreconf:
# 	dh_autoreconf --as-needed

override_dh_auto_configure: $(configure_targets)

configure-%:
	dh_auto_configure -D"$*"

configure-Project/Qt/:
	dh_auto_configure -DProject/Qt -- USE_WEBKIT=1

override_dh_auto_build:
	$(call auto_build_cmd,dh_auto_build)

override_dh_auto_install:
	$(call auto_build_cmd,dh_auto_install)

override_dh_auto_clean:
	$(call auto_build_cmd,dh_auto_clean)

override_dh_installman: debian/mediaconch.1 debian/mediaconch-gui.1
	dh_installman

override_dh_installchangelogs:
	dh_installchangelogs -p mediaconch History_CLI.txt
	dh_installchangelogs -p mediaconch-gui History_GUI.txt

clean:
	rm -f debian/*.1
	dh clean --with=autoreconf

%.1: %.pod
	pod2man --center "User Commands" --release=MediaConch\ $(DEB_VERSION_UPSTREAM) $< > $@