File: rules

package info (click to toggle)
context-modules 20250324-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 32,712 kB
  • sloc: ruby: 15,247; xml: 1,509; sh: 42; makefile: 22
file content (32 lines) | stat: -rwxr-xr-x 1,123 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
#! /usr/bin/make -f

package        := context-modules
instbase       := debian/$(package)

%:
	dh $@ --with tex

override_dh_auto_build:
	: there is nothing for build

override_dh_auto_test:
	: do nothing here, otherwise test suite is run.

override_dh_auto_install:
	cp -a tex $(instbase)/usr/share/texmf
	cp -a scripts $(instbase)/usr/share/texmf
	cp -a metapost $(instbase)/usr/share/texmf
	cp -a doc $(instbase)/usr/share/texmf
	cp -a fonts $(instbase)/usr/share/texmf
	cp -a texmf-dist $(instbase)/usr/share/texlive
	rm -rf $(instbase)/usr/share/texlive/texmf-dist/scripts/context-texlive/stubs-mkiv/win64
	rm -rf $(instbase)/usr/share/texlive/texmf-dist/scripts/context-texlive/stubs/win64
#	Remove legacy (mkii) documentation to get rid of file conflicts
#	https://piuparts.debian.org/experimental/fail/context-modules_20240428-2.log
	rm -rf $(instbase)/usr/share/texlive/texmf-dist/doc
	# remove unnecessary stuff
	find $(instbase)/usr/share/texmf/doc/ -name COPYING | xargs rm
	find $(instbase)/usr/share/texmf/doc/ -name LICENSE | xargs rm

override_dh_strip_nondeterminism:
	: modifies files in unwanted manner