File: rules

package info (click to toggle)
erlang-hex 2.0.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,204 kB
  • sloc: erlang: 2,950; sh: 203; makefile: 10
file content (22 lines) | stat: -rwxr-xr-x 566 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
#!/usr/bin/make -f

# See debhelper(7) (uncomment to enable).
# Output every command that modifies files on the build system.
export DH_VERBOSE = 1


# See FEATURE AREAS in dpkg-buildflags(1).
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_build:
#	MIX_ENV=prod mix compile
	echo "n" | MIX_ENV=prod mix compile

override_dh_auto_install:
	mkdir -p debian/erlang-hex/usr/lib/elixir/
	echo "n" | MIX_ENV=prod mix archive.build -o _build/hex.ez
	echo "n" | MIX_ARCHIVES=$$PWD/_build/install/ \
		mix archive.install _build/hex.ez --force