File: rules

package info (click to toggle)
django-markupfield 1.0.0a2-1%2Bdeb6u1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze-lts
  • size: 156 kB
  • ctags: 105
  • sloc: python: 323; makefile: 17
file content (22 lines) | stat: -rwxr-xr-x 652 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
#!/usr/bin/make -f
%:
	dh $@

.PHONY: override_dh_auto_test
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	django-admin startproject testproject
	cp markupfield/tests/*.py testproject/
	set -e; \
	for python in $(shell pyversions -r); do \
	  $$python testproject/manage.py test --settings=testproject.settings --pythonpath=. ; \
	done
	rm -rf testproject
endif

.PHONY: override_dh_pysupport
override_dh_pysupport:
	  # Work-around for bug #575377:
	  find debian/ -name "django_markupfield-*.egg-info" | tail -n +2 | xargs -r -n1 cp -vf $(shell find debian/ -name "django_markupfield-*.egg-info" | head -n 1)
	  dh_pysupport