2018-08-07 22:18:59 -07:00
|
|
|
#! /usr/bin/make -f
|
2018-08-09 18:59:53 -07:00
|
|
|
CONFIG := Release
|
|
|
|
TERM := xterm
|
2018-08-07 22:18:59 -07:00
|
|
|
SHELL := /bin/bash
|
2018-12-28 08:25:19 -07:00
|
|
|
DOTNETRUNTIME := linux-x64
|
2018-08-07 22:18:59 -07:00
|
|
|
export DH_VERBOSE=1
|
2018-12-12 08:00:32 -07:00
|
|
|
export DOTNET_CLI_TELEMETRY_OPTOUT=1
|
2018-08-07 22:18:59 -07:00
|
|
|
|
|
|
|
%:
|
2018-08-09 18:59:53 -07:00
|
|
|
dh $@
|
2018-08-07 22:18:59 -07:00
|
|
|
|
|
|
|
# disable "make check"
|
|
|
|
override_dh_auto_test:
|
|
|
|
|
|
|
|
# disable stripping debugging symbols
|
|
|
|
override_dh_clistrip:
|
|
|
|
|
|
|
|
override_dh_auto_build:
|
2018-12-28 08:25:19 -07:00
|
|
|
dotnet publish --configuration $(CONFIG) --output='$(CURDIR)/usr/lib/jellyfin/bin' --self-contained --runtime $(DOTNETRUNTIME)
|
2018-08-07 22:18:59 -07:00
|
|
|
|
|
|
|
override_dh_auto_clean:
|
2018-12-15 22:43:38 -07:00
|
|
|
dotnet clean -maxcpucount:1 --configuration $(CONFIG) || true
|
2018-12-14 19:21:48 -07:00
|
|
|
rm -rf '$(CURDIR)/usr'
|