File: rules

package info (click to toggle)
django-sortedm2m 3.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 344 kB
  • sloc: python: 954; javascript: 129; makefile: 17
file content (24 lines) | stat: -rwxr-xr-x 790 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

export PYBUILD_NAME=sortedm2m

%:
	dh $@ --buildsystem=pybuild

execute_after_dh_auto_clean:
	find -name '.DS_Store' -print -delete

override_dh_auto_install:
	dh_auto_install
	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

override_dh_installdocs:
	dh_installdocs -A AUTHORS.rst README.rst