File: rules

package info (click to toggle)
hydrogen 1.2.2%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 83,860 kB
  • sloc: xml: 75,490; cpp: 75,443; sh: 871; python: 238; ruby: 219; makefile: 158; javascript: 130; php: 90; ansic: 26
file content (28 lines) | stat: -rwxr-xr-x 729 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

export DEB_CMAKE_EXTRA_FLAGS = -DWANT_SHARED=OFF \
 -DWANT_PORTAUDIO=ON \
 -DWANT_PORTMIDI=ON \
 -DWANT_RUBBERBAND=ON

export QTDIR=/usr/lib/qt5

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure --buildsystem=cmake -- $(DEB_CMAKE_EXTRA_FLAGS)

execute_after_dh_auto_build:
	mv ./data/img/h2-icon.bmp ./data/img/h2-icon.png
	make -C documentation \
	     manual_en.html tutorial_en.html tutorial_fr.html tutorial_it.html

execute_before_dh_clean:
	mv ./data/img/h2-icon.png ./data/img/h2-icon.bmp || true

execute_after_dh_auto_install:
	rm -rf debian/tmp/usr/share/hydrogen/data/new_tutorial
	rm -f  debian/tmp/usr/share/hydrogen/data/doc/res/LICENSE