File: rules

package info (click to toggle)
pynwb 2.8.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 44,312 kB
  • sloc: python: 17,501; makefile: 597; sh: 11
file content (34 lines) | stat: -rwxr-xr-x 1,184 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
29
30
31
32
33
34
#!/usr/bin/make -f

export DH_VERBOSE=1

export PYBUILD_NAME=pynwb

PKG = python3-pynwb
PKG_ROOT = $(CURDIR)/debian/$(PKG)

%:
	dh $@ --buildsystem=pybuild

PKG_DIST = $(PKG_ROOT)/usr/lib/python3*/dist-packages
execute_after_dh_install:
	find debian -name "test_*.nwb" -delete
	rm -f .coverage.*
	# Remove duplicate directory.
	rm -rvf $(PKG_DIST)/pynwb/nwb-schema/docs
	rm -vf $(PKG_DIST)/pynwb/nwb-schema/Legal.txt
	rm -vf $(PKG_DIST)/pynwb/nwb-schema/README.rst
	rm -vf $(PKG_DIST)/pynwb/nwb-schema/license.txt
	rm -vf $(PKG_DIST)/pynwb/nwb-schema/requirements-doc.txt
	rm -rvf $(PKG_DIST)/pynwb/nwb-schema/hdmf-common-schema/docs
	rm -vf $(PKG_DIST)/pynwb/nwb-schema/hdmf-common-schema/Legal.txt
	rm -vf $(PKG_DIST)/pynwb/nwb-schema/hdmf-common-schema/README.md
	rm -vf $(PKG_DIST)/pynwb/nwb-schema/hdmf-common-schema/license.txt
	rm -vf $(PKG_DIST)/pynwb/nwb-schema/hdmf-common-schema/requirements-doc.txt
	rm -vf $(PKG_DIST)/pynwb/nwb-schema/hdmf-common-schema/setup.cfg

PKG_DOC = $(PKG_ROOT)/usr/share/doc/$(PKG)
execute_after_dh_installdocs:
	# Remove extra license files
	rm -vf $(PKG_DOC)/nwb-schema/hdmf-common-schema/license.txt
	rm -vf $(PKG_DOC)/nwb-schema/license.txt