File: rules

package info (click to toggle)
rednotebook 2.42%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,976 kB
  • sloc: python: 9,842; javascript: 4,103; xml: 128; sh: 58; makefile: 12
file content (24 lines) | stat: -rwxr-xr-x 683 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
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment the line below to turn on debhelper verbose mode.
#export DH_VERBOSE=1

export PYBUILD_NAME = rednotebook

%:
	dh $@ --buildsystem=pybuild

override_dh_auto_install:
	# install into a private directory
	python3 setup.py install --root=$(CURDIR)/debian/rednotebook \
		--install-lib=/usr/share/rednotebook \
		--install-scripts=/usr/bin \
		--install-data=/usr
	# "--install-scripts=/usr/share/rednotebook" will not work here
	# as binary name is the same as module name
	mv $(CURDIR)/debian/rednotebook/usr/bin/rednotebook \
		$(CURDIR)/debian/rednotebook/usr/share/rednotebook/run.py

override_dh_auto_test:
	echo "Skipping tests"