greg@106: #!/usr/bin/make -f greg@106: # -*- makefile -*- greg@106: # Sample debian/rules that uses debhelper. greg@106: # This file was originally written by Joey Hess and Craig Small. greg@106: # As a special exception, when this file is copied by dh-make into a greg@106: # dh-make output file, you may use that output file without restriction. greg@106: # This special exception was added by Craig Small in version 0.37 of dh-make. greg@106: greg@106: # Uncomment this to turn on verbose mode. greg@106: export DH_VERBOSE=1 greg@106: greg@106: CFLAGS = -Wall -g greg@106: greg@106: ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) greg@106: CFLAGS += -O0 greg@106: else greg@106: CFLAGS += -O2 greg@106: endif greg@106: greg@106: configure: configure-stamp greg@106: configure-stamp: greg@106: dh_testdir greg@106: # Add here commands to configure the package. greg@106: greg@106: touch configure-stamp greg@106: greg@106: ############## greg@106: # And now the simple things for dpatch. Here we only apply/unapply the patches. greg@106: # You can do more things with dpatch, like having patches only applied on greg@106: # a special architecture - see the non-dh version of the sample for this! greg@106: patch: patch-stamp greg@106: patch-stamp: greg@106: dpatch apply-all greg@106: dpatch cat-all >patch-stamp greg@106: touch patch-stamp greg@106: greg@106: unpatch: greg@106: dpatch deapply-all greg@106: rm -rf patch-stamp debian/patched greg@106: greg@106: build: build-stamp greg@106: greg@106: build-stamp: configure-stamp patch greg@106: dh_testdir greg@106: greg@106: # Add here commands to compile the package. greg@106: $(MAKE) greg@106: #docbook-to-man debian/matiec.sgml > matiec.1 greg@106: greg@106: touch $@ greg@106: greg@106: clean: unpatch greg@106: dh_testdir greg@106: dh_testroot greg@106: rm -f build-stamp configure-stamp greg@106: greg@106: # Add here commands to clean up after the build process. greg@106: -$(MAKE) clean greg@106: greg@106: dh_clean greg@106: greg@106: install: build greg@106: dh_testdir greg@106: dh_testroot greg@106: dh_clean -k greg@106: dh_installdirs greg@106: greg@106: # Add here commands to install the package into debian/matiec. greg@106: $(MAKE) INSTALL_PREDIR=$(CURDIR)/debian/matiec/usr INSTALL_BINDIR=/bin IECLIBDIR=/lib install greg@106: greg@106: greg@106: # Build architecture-independent files here. greg@106: binary-indep: build install greg@106: # We have nothing to do by default. greg@106: greg@106: # Build architecture-dependent files here. greg@106: binary-arch: build install greg@106: dh_testdir greg@106: dh_testroot greg@106: dh_installchangelogs greg@106: dh_installdocs greg@106: dh_installexamples greg@106: # dh_install greg@106: # dh_installmenu greg@106: # dh_installdebconf greg@106: # dh_installlogrotate greg@106: # dh_installemacsen greg@106: # dh_installpam greg@106: # dh_installmime greg@106: # dh_python greg@106: # dh_installinit greg@106: # dh_installcron greg@106: # dh_installinfo greg@106: dh_installman greg@106: dh_link greg@106: dh_strip greg@106: dh_compress greg@106: dh_fixperms greg@106: # dh_perl greg@106: # dh_makeshlibs greg@106: dh_installdeb greg@106: dh_shlibdeps greg@106: dh_gencontrol greg@106: dh_md5sums greg@106: dh_builddeb greg@106: greg@106: binary: binary-indep binary-arch greg@106: .PHONY: build clean binary-indep binary-arch binary install configure patch unpatch