#!/usr/bin/make -f # # $Id$ # # Copyleft (C) ITEG IT-Engineers GmbH 2014 # # rules file for creating debian packages # include /usr/share/cdbs/1/rules/debhelper.mk DEB_DH_ALWAYS_EXCLUDE := .svn:debian/tmp srcname = gpsfake-runner srcdir = $(shell pwd)/src package = gpsfake-runner target = gpsfake-runner SRCDIR = $(shell /bin/pwd)/src DESTDIR = $(shell /bin/pwd)/debian/$(package) DEB_INSTALL_DOCS_ALL := doc/LICENSE.txt doc/ReadMe.txt INSTALL_PROGRAM = install VERSION=$(shell /usr/share/pba-cbs/sh/get_deb_version.sh $(srcdir)) clean:: cd debian && rm -rf *.subvars *.log gpsfake-runner tmp rm -f common-install-indep common-install-indep:: rm -rf debian/gpsfake-runner mkdir -p debian/gpsfake-runner # /etc/default mkdir -pv $(DESTDIR)/etc/default cp $(SRCDIR)/etc/default/gpsfake-runner $(DESTDIR)/etc/default/ # /etc/init.d mkdir -pv $(DESTDIR)/etc/init.d cp $(SRCDIR)/etc/init.d/gpsfake-runner $(DESTDIR)/etc/init.d/ # /usr/bin mkdir -pv $(DESTDIR)/usr/bin cp $(SRCDIR)/bin/gpsfake-runner $(DESTDIR)/usr/bin/ # /var/spool mkdir -pv $(DESTDIR)/var/spool/gpsfake-runner # done chmod -R 0755 $(DESTDIR) touch common-install-indep