#!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 #export DH_NO_ACT=1 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) CFLAGS = -Wall ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) CFLAGS += -g endif ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) INSTALL_PROGRAM += -s endif ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif # call dpatch include /usr/share/dpatch/dpatch.make build: build-stamp build-stamp: patch dh_testdir # Add here commands to compile the package. $(MAKE) $(MAKE) ibam-krell.so touch build-stamp clean: clean1 unpatch clean1: dh_testdir dh_testroot rm -f build-stamp # Add here commands to clean up after the build process. $(MAKE) clean #-$(MAKE) distclean dh_clean install: install: build dh_testdir dh_testroot dh_clean dh_installdirs # Add here commands to install the package into debian/tmp. install -m0755 ibam `pwd`/debian/ibam/usr/bin install -m0644 ibam-krell.so `pwd`/debian/gkrellm-ibam/usr/lib/gkrellm2/plugins #install -c -s -m 755 ibam-krell.so `pwd`/debian/gkrellm-ibam/usr/lib/gkrellm/plugins dh_install # Build architecture-independent files here. binary-indep: build install # Build architecture-dependent files here. binary-arch: build install dh_testdir -a dh_testroot -a dh_installchangelogs CHANGES dh_installdocs README # dh_installexamples -a # dh_installmenu -a dh_installdebconf -a # dh_installlogrotate -a # dh_installemacsen -a # dh_installpam -a # dh_installmime -a # dh_installinit -a # dh_installcron -a # dh_installinfo -a # dh_undocumented dh_installman `pwd`/debian/ibam.1 dh_strip -a dh_link dh_compress -a dh_fixperms -a # dh_makeshlibs -a dh_installdeb -a # dh_perl -a dh_shlibdeps -a dh_gencontrol -a dh_md5sums -a dh_builddeb -a binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install