File: rules

package info (click to toggle)
django-sortedm2m 0.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 168 kB
  • ctags: 69
  • sloc: python: 417; makefile: 19
file content (24 lines) | stat: -rwxr-xr-x 1,131 bytes parent folder | download | duplicates (2)
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

export PYBUILD_NAME=sortedm2m

%:
	dh $@ --with python2,python3 --buildsystem=pybuild

override_dh_auto_install:
	dh_auto_install
	set -e; for python in $(shell pyversions -r); do \
		rm -r debian/python-sortedm2m/usr/lib/$$python/dist-packages/sortedm2m/static; \
		rm -r debian/python-sortedm2m/usr/lib/$$python/dist-packages/sortedm2m/templates; \
		ln -s /usr/share/sortedm2m/static debian/python-sortedm2m/usr/lib/$$python/dist-packages/sortedm2m/static; \
		ln -s /usr/share/sortedm2m/templates debian/python-sortedm2m/usr/lib/$$python/dist-packages/sortedm2m/templates; \
	done
	set -e; for python in $(shell py3versions -r); do \
		rm -r debian/python3-sortedm2m/usr/lib/$$python/dist-packages/sortedm2m/static; \
		rm -r debian/python3-sortedm2m/usr/lib/$$python/dist-packages/sortedm2m/templates; \
		ln -s /usr/share/sortedm2m/static debian/python3-sortedm2m/usr/lib/$$python/dist-packages/sortedm2m/static; \
		ln -s /usr/share/sortedm2m/templates debian/python3-sortedm2m/usr/lib/$$python/dist-packages/sortedm2m/templates; \
	done

override_dh_installchangelogs:
	dh_installchangelogs CHANGES.rst