File: rules

package info (click to toggle)
sfepy 2020.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 25,312 kB
  • sloc: python: 69,368; ansic: 13,832; makefile: 112; sh: 30
file content (28 lines) | stat: -rwxr-xr-x 716 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
#!/usr/bin/make -f

export PYTHONPATH := $(CURDIR):$(CURDIR)/script:$(CURDIR)/doc:$(PYTHONPATH);
export HOME := $(CURDIR)/debian/HOME
export QT_QPA_PLATFORM := offscreen

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

override_dh_auto_clean:

override_dh_auto_test:

override_dh_auto_install:
	mkdir -p $(HOME)/.sfepy
	dh_auto_install
	dh_numpy3
	$(MAKE) all
	$(MAKE) htmldocs
	$(MAKE) pdfdocs
	cd doc; $(MAKE) man
	cd doc/_build/latex; pdflatex SfePy.tex; pdflatex SfePy.tex

override_dh_installdocs:
	dh_installdocs
	dh_sphinxdoc
	rm -rf $(CURDIR)/debian/python3-sfepy/usr/lib/python3*/dist-packages/sfepy/LICENSE
	rm -rf $(CURDIR)/debian/python-sfepy-doc/usr/share/doc/python-sfepy-doc/html/_sources/license.txt