File: rules

package info (click to toggle)
voctomix 1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,364 kB
  • sloc: python: 4,958; sh: 733; makefile: 23
file content (35 lines) | stat: -rwxr-xr-x 1,084 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
# #export DH_VERBOSE=1

%:
	dh $@ --with python3

override_dh_auto_build:
	# build and avoid https://lintian.debian.org/tags/privacy-breach-generic.html
	grep -v "\[Build Status\]" README.md | pandoc -o voctomix.html
	# just build these
	pandoc -o voctocore.html voctocore/README.md
	pandoc -o voctogui.html voctogui/README.md

override_dh_python3:
	dh_python3 /usr/share/voctomix

override_dh_clean:
	dh_clean
	rm -f voctomix.html voctocore.html voctogui.html debian/debhelper-build-stamp

include /usr/share/dpkg/pkg-info.mk

new-upstream-version: clean
	mkdir -p $(DEB_SOURCE)-$(DEB_VERSION_UPSTREAM)/
	rsync -av --delete --exclude=debian/ \
	    --exclude=$(DEB_SOURCE)-$(DEB_VERSION_UPSTREAM)/ \
	    * $(DEB_SOURCE)-$(DEB_VERSION_UPSTREAM)/
	find "$(DEB_SOURCE)-$(DEB_VERSION_UPSTREAM)" \
	    -xdev \( -type f -o -type l \) -print \
	    | sort \
	    | tar -cJaf "../$(DEB_SOURCE)_$(DEB_VERSION_UPSTREAM).orig.tar.xz" \
	    -T- --owner=root --group=root --mode=a+rX
	rm -r "$(DEB_SOURCE)-$(DEB_VERSION_UPSTREAM)"