File: rules

package info (click to toggle)
asdf-coordinates-schemas 0.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 656 kB
  • sloc: python: 229; makefile: 118
file content (20 lines) | stat: -rwxr-xr-x 726 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f
#export DH_VERBOSE=1

export PYBUILD_DISABLE=test

%:
	dh $@ --buildsystem=pybuild

# setuptools_scm tries to get the file list from "git ls", which
# doesn't work on the autobuilders. That's why we manually create a
# MANIFEST.in by just listing everything and prepending this a (still
# possible) upstream provided one.
execute_after_dh_auto_configure:
	if [ -f MANIFEST.in ]; then mv MANIFEST.in MANIFEST.orig; fi
	find . \( -path './.git' -o -path './debian' \) -prune -o -not -type d -printf "include %P\n" > MANIFEST.in
	if [ -f MANIFEST.orig ]; then cat MANIFEST.orig >> MANIFEST.in; fi

execute_after_dh_auto_clean:
	rm -f MANIFEST.in
	if [ -f MANIFEST.orig ]; then mv MANIFEST.orig MANIFEST.in; fi