File: rules

package info (click to toggle)
weborf 0.15-1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 900 kB
  • sloc: ansic: 3,482; sh: 1,402; python: 691; makefile: 90
file content (26 lines) | stat: -rwxr-xr-x 589 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
#!/usr/bin/make -f

SHELL=sh -e

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# DPKG_EXPORT_BUILDFLAGS = 1
# include /usr/share/dpkg/buildflags.mk

export DH_VERBOSE=1

%:
	dh $@ --with python3

override_dh_installinit:
	dh_installinit -pweborf-daemon --onlyscripts --init-script=weborf

override_dh_auto_install:
	pyuic5 qweborf/main.ui > qweborf/main.py
	python3 qweborf.setup.py install --root=debian/qweborf --install-layout=deb
	install -D qweborf/qweborf debian/qweborf/usr/bin/qweborf
	dh_auto_install

override_dh_auto_clean:
	rm -rf build
	rm -f qweborf/main.py
	dh_auto_clean