Rev 7 | Rev 19 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
#!/usr/bin/make -f# Sample debian/rules that uses debhelper.# GNU copyright 1997 to 1999 by Joey Hess.# Uncomment this to turn on verbose mode.#export DH_VERBOSE=1include /usr/share/dpatch/dpatch.makeCFLAGS = -pipe -Wall -g -DTMPDIR=\"\\\"/tmp\\\"\"ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))CFLAGS += -O0LDFLAGS = -selseCFLAGS += -O2endififeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))INSTALL_PROGRAM += -sendif# Overrides for the PMK Makefile stuffCC=gccDESTDIR=$(CURDIR)/debian/pmkexport CFLAGS LDFLAGS CCconfigure: configure-stampconfigure-stamp:dh_testdir./pmkcfg.sh -p /usrtouch configure-stampbuild: build-stampbuild-stamp: patch configure-stampdh_testdir# Add here commands to compile the package.$(MAKE) PREMAKE=pmktouch build-stampclean: clean-patched unpatchclean-patched:dh_testdirdh_testrootrm -f build-stamp# Add here commands to clean up after the build process.-$(MAKE) distcleanrm -f configure-stampdh_cleaninstall: build-stampdh_testdirdh_testrootdh_clean -kdh_installdirs# Add here commands to install the package into debian/pmk.$(MAKE) install DESTDIR=$(DESTDIR) MANDIR=/usr/share/man PREMAKE=pmkbinary-indep: install# Build architecture-dependent files here.binary-arch: installdh_testdirdh_testrootdh_installchangelogs Changelogdh_installdocsdh_installexamplesdh_installmanfind $(DESTDIR)/usr/share/man -type f | \xargs -r sed -i -e '$$!b' -e '/^\.$$/d'dh_linkdh_stripdh_compressdh_fixpermschmod -x $(DESTDIR)/usr/share/doc/pmk/examples/tests/plang_test.cdh_installdebdh_shlibdepsdh_gencontroldh_md5sumsdh_builddebbinary: binary-indep binary-arch.PHONY: build clean binary-indep binary-arch binary install