File: rules

package info (click to toggle)
plastex 3.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,132 kB
  • sloc: python: 23,341; xml: 18,076; javascript: 7,755; ansic: 46; makefile: 40; sh: 26
file content (29 lines) | stat: -rwxr-xr-x 905 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
#!/usr/bin/make -f

export PYBUILD_NAME = plastex

# building the docs needs the just-built plastex
export PLASTEXPATH = $(shell pybuild -p `py3versions -dv` --print {build_dir})
export PLASTEX = $(PLASTEXPATH)/../scripts/plastex

%:
	dh $@ --buildsystem=pybuild

execute_after_dh_auto_build:
	export PYTHONPATH=$(PLASTEXPATH); \
	  export TEXINPUTS=.:$(CURDIR)/Doc/commontex:$(CURDIR)/Doc/texinputs; \
	  cd Doc; \
	  $(PLASTEX) --mathjax-url=mathjax/MathJax.js?config=TeX-AMS_CHTML plastex.tex
	mv Doc/plastex html
	rm -rf html/.cache

override_dh_installdocs:
	dh_installdocs -ppython-plastex-doc --doc-main-package=python3-plastex
	dh_installdocs --remaining-packages

execute_after_dh_auto_install:
	mkdir -p debian/plastex/usr/
	mv debian/python3-plastex/usr/bin debian/plastex/usr/

execute_after_dh_fixperms:
	find debian/python3-plastex/usr/lib/python3/dist-packages -type f -exec chmod a-x {} +