File: rules

package info (click to toggle)
elixir-ex-doc 0.35.1%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,784 kB
  • sloc: javascript: 2,848; makefile: 15; xml: 12; sh: 5
file content (26 lines) | stat: -rwxr-xr-x 570 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
export DH_VERBOSE = 1
export ERL_COMPILER_OPTIONS=deterministic

%:
	dh $@

override_dh_auto_clean:
	rm -rf formatters/html/dist
	rm -rf formatters/epub/dist
	rm -rf tmp
	dh_auto_clean

override_dh_auto_build:
	# Build assets - CSS and JavaScript files
	(cd assets ; node build/build.js)
	# Build the package itself
	ERL_LIBS=/usr/lib/elixir/lib \
	MIX_ENV=prod \
		mix compile --no-deps-check
	dh_auto_build

# Disable tests at the moment since they require dependencies, which are missing in Debian
#override_dh_auto_test:
#	mix test
#	dh_auto_test