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
|