LogoKolab Groupware OBS > Projects
Log In

View File debian.rules of Package erlang-eimap (Project home:mollekopf:branches:Kolab:Winterfell)

#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

DESTDIR = $(CURDIR)/debian/erlang-eimap

%:
	dh $@

override_dh_auto_build:
	./rebar3 compile -v
	#rebar3 release --dev-mode false --relname eimap --relvsn 0.4.0 --verbose

override_dh_auto_install:
	mkdir -p $(DESTDIR)/usr/lib/erlang/lib/eimap-$(DEB_VERSION_UPSTREAM)/ebin \
	      $(DESTDIR)/usr/lib/erlang/lib/eimap-$(DEB_VERSION_UPSTREAM)/src
	install -D -m 644 ./_build/default/lib/eimap/ebin/eimap.app \
	        $(DESTDIR)/usr/lib/erlang/lib/eimap-$(DEB_VERSION_UPSTREAM)/ebin/eimap.app
	install -D -m 644 ./_build/default/lib/eimap/ebin/*.beam \
	        $(DESTDIR)/usr/lib/erlang/lib/eimap-$(DEB_VERSION_UPSTREAM)/ebin/