File: rules

package info (click to toggle)
ldaptor 0.0.43%2Bdebian1-7
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch, wheezy
  • size: 2,180 kB
  • ctags: 3,626
  • sloc: python: 18,648; xml: 787; makefile: 149; sh: 88
file content (38 lines) | stat: -rwxr-xr-x 980 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
35
36
37
38
#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-

-include /usr/share/python/python.mk
ifeq (,$(py_sitename))
  py_sitename = site-packages
  py_libdir = /usr/lib/python$(subst python,,$(1))/site-packages
endif

PYDEFAULT=$(shell pyversions -d)

%:
	dh --with python2 --buildsystem=python_distutils $@

override_dh_install:
	dh_install
	rm -rf \
	  debian/python-ldaptor/usr/lib/python*/*-packages/ldaptor/apps/webui \
	  debian/python-ldaptor/usr/lib/python*/*-packages/ldaptor/test/test_webui.py \
	  debian/ldaptor-utils/usr/bin/ldaptor-webui
	PYTHONPATH=$(CURDIR)/debian/python-ldaptor/$(py_libdir $(PYDEFAULT)) \
	  trial --tbformat=emacs --reporter=text ldaptor

override_dh_auto_build: doc-stamp
doc-stamp:
	make -C doc
	touch $@

override_dh_compress:
	dh_compress -X.py -X.js -Xapi-objects.txt

override_dh_auto_clean:
	find . -type f -name '*.pyc' -delete
	make -C doc clean
	rm -f doc-stamp
	rm -rf _trial_temp
	rm -f ldaptor/test/test_webui.py
	rm -rf build