File: rules

package info (click to toggle)
sfepy 2025.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 27,280 kB
  • sloc: python: 75,106; ansic: 13,270; makefile: 117; sh: 30
file content (36 lines) | stat: -rwxr-xr-x 978 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
#!/usr/bin/make -f

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

export PYBUILD_NAME=sfepy
export PYBUILD_SYSTEM=distutils

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

execute_after_dh_auto_clean:
	find . -type f -name "version.h" -delete
	find . -type f -name "*.so" -delete
	find . -type f -name "*.pdf" -delete

execute_before_dh_auto_build:
	mkdir -p $(HOME)/.sfepy

execute_after_dh_auto_build:
	# Build documentation
	$(MAKE) all
	$(MAKE) htmldocs
	$(MAKE) pdfdocs
	cd doc; $(MAKE) man
	cd doc/_build/latex; pdflatex SfePy.tex; pdflatex SfePy.tex

override_dh_auto_test:

override_dh_installdocs:
	find . -type d -name "__pycache__" -exec rm -r {} +
	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