File: rules

package info (click to toggle)
python-mhash 1.4-1.2
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 124 kB
  • ctags: 104
  • sloc: ansic: 578; python: 188; makefile: 20
file content (26 lines) | stat: -rwxr-xr-x 844 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
#!/usr/bin/make -f

DEB_DH_INSTALL_SOURCEDIR:=debian/tmp
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk

clean::
	rm -rf build

$(patsubst %,build/%,$(DEB_DBG_PACKAGES))::
	set -e; \
	for i in $(cdbs_python_build_versions); do \
		$$i-dbg $(DEB_PYTHON_SETUP_CMD) build; \
	done

$(patsubst %,install/%,$(DEB_DBG_PACKAGES))::
	for i in $(cdbs_python_build_versions); do \
		$$i-dbg $(DEB_PYTHON_SETUP_CMD) install --root $(CURDIR)/debian/$(cdbs_curpkg); \
	done
	find debian/$(cdbs_curpkg) \
		! -type d ! -name '*_d.so' | xargs rm -f
	find debian/$(cdbs_curpkg) -depth -empty -exec rmdir {} \;

$(patsubst %,binary-predeb/%,$(DEB_DBG_PACKAGES))::
	rm -rf debian/$(cdbs_curpkg)/usr/share/doc/$(cdbs_curpkg)
	ln -s $(subst -dbg,,$(cdbs_curpkg)) debian/$(cdbs_curpkg)/usr/share/doc/$(cdbs_curpkg)