File: rules

package info (click to toggle)
python-toscawidgets 0.9.7.2-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 1,080 kB
  • ctags: 1,071
  • sloc: python: 3,906; makefile: 17; sh: 13
file content (24 lines) | stat: -rwxr-xr-x 635 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
include /usr/share/cdbs/1/class/python-distutils.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/dpatch.mk

PKG = python-toscawidgets
UPSTREAMS = \
	toscawidgets \
	tw.forms \
	$(NULL)
export SUBDIRS = $(UPSTREAMS)

DEB_PYTHON_INSTALL_ARGS_ALL += --single-version-externally-managed

makebuilddir/$(PKG)::
	find . -name '*.pyc' -exec rm {} \;

# avoid installing useless *.pth files ; fix spurious +x bits
install/$(PKG)::
	rm -f debian/$(PKG)/usr/lib/python*/site-packages/*.pth
	-find debian/$(PKG)/usr/lib/ \
		-name \*.css -exec chmod -x {} \;

-include debian/get-orig-source.mk