#!/usr/bin/make -f # export DH_VERBOSE = 1 export ROOT = debian/tmp export APP_FOLDER = $(ROOT)/usr/lib/helm export DEB_VERSION = $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ') export RELEASE = $(shell echo $(DEB_VERSION) | cut -f 1 -d '-') export REVISION = $(shell echo $(DEB_VERSION) | cut -f 4 -d '.') export CHART_VERSION = $(RELEASE).$(REVISION) %: dh $@ override_dh_auto_build: # Stage the chart for building mkdir -p build mv Makefile ptp-notification build # Build the chart cd build && make CHART_VERSION=$(CHART_VERSION) ptp-notification override_dh_auto_install: install -d -m 755 $(APP_FOLDER) install -p -D -m 755 build/ptp-notification*.tgz $(APP_FOLDER) override_dh_auto_test: