#!/usr/bin/make -f # # $Id: rules 10 2010-06-30 14:02:34Z pba $ # # rules file for creating debian packages # DEB_DH_ALWAYS_EXCLUDE = .svn:debian/tmp srcname = pba-helloworld package = pba-helloworld target = pba-helloworld srcdir = $(shell /bin/pwd)/src builddir = $(shell /bin/pwd)/build PKGROOT=$(shell pwd)/debian INSTALL_PROGRAM = install # for armhf, works for i386 & amd64 too CC=$(DEB_HOST_GNU_TYPE)-gcc %: dh $@ override_dh_strip: dh_strip -p$(package) --dbg-package=$(package)-dbg override_dh_auto_build: mkdir -pv $(builddir) $(CC) $(srcdir)/pba-helloworld.c -o $(builddir)/pba-helloworld clean:: rm -rf $(builddir) rm -rf debian/*.subvars debian/*.log debian/$(package) override_dh_auto_install: rm -rf $(PKGROOT)/$(package) mkdir -p $(PKGROOT)/$(package)/usr/bin/ cd $(builddir) && install pba-helloworld $(PKGROOT)/$(package)/usr/bin/