melunko@848: #!/usr/bin/make -f
melunko@848: # -*- makefile -*-
melunko@848: # Sample debian/rules that uses debhelper.
melunko@848: # This file was originally written by Joey Hess and Craig Small.
melunko@848: # As a special exception, when this file is copied by dh-make into a
melunko@848: # dh-make output file, you may use that output file without restriction.
melunko@848: # This special exception was added by Craig Small in version 0.37 of dh-make.
melunko@848:
melunko@848: # Uncomment this to turn on verbose mode.
melunko@848: #export DH_VERBOSE=1
melunko@848:
melunko@848:
melunko@848: # These are used for cross-compiling and for saving the configure script
melunko@848: # from having to guess our platform (since we know it already)
melunko@848: DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
melunko@848: DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
melunko@848:
melunko@848:
melunko@848: CFLAGS = -Wall -g
melunko@848:
melunko@848: ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
melunko@848: CFLAGS += -O0
melunko@848: else
melunko@848: CFLAGS += -O2
melunko@848: endif
melunko@848:
melunko@848: config.status: configure
melunko@848: dh_testdir
melunko@848: # Add here commands to configure the package.
melunko@848: ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
melunko@848:
melunko@848:
melunko@848: build: build-stamp
melunko@848:
melunko@848: build-stamp: config.status
melunko@848: dh_testdir
melunko@848:
melunko@848: # Add here commands to compile the package.
melunko@848: $(MAKE)
melunko@848: #docbook-to-man debian/gmencoder.sgml > gmencoder.1
melunko@848:
melunko@848: touch $@
melunko@848:
melunko@848: clean:
melunko@848: dh_testdir
melunko@848: dh_testroot
melunko@848: rm -f build-stamp
melunko@848:
melunko@848: # Add here commands to clean up after the build process.
melunko@848: -$(MAKE) distclean
melunko@848: ifneq "$(wildcard /usr/share/misc/config.sub)" ""
melunko@848: cp -f /usr/share/misc/config.sub config.sub
melunko@848: endif
melunko@848: ifneq "$(wildcard /usr/share/misc/config.guess)" ""
melunko@848: cp -f /usr/share/misc/config.guess config.guess
melunko@848: endif
melunko@848:
melunko@848:
melunko@848: dh_clean
melunko@848:
melunko@848: install: build
melunko@848: dh_testdir
melunko@848: dh_testroot
melunko@848: dh_clean -k
melunko@848: dh_installdirs
melunko@848:
melunko@848: # Add here commands to install the package into debian/gmencoder.
melunko@848: $(MAKE) DESTDIR=$(CURDIR)/debian/gmencoder install
melunko@848:
melunko@848:
melunko@848: # Build architecture-independent files here.
melunko@848: binary-indep: build install
melunko@848: # We have nothing to do by default.
melunko@848:
melunko@848: # Build architecture-dependent files here.
melunko@848: binary-arch: build install
melunko@848: dh_testdir
melunko@848: dh_testroot
melunko@848: dh_installchangelogs ChangeLog
melunko@848: dh_installdocs
melunko@848: dh_installexamples
melunko@848: dh_install
melunko@848: # dh_installmenu
melunko@848: # dh_installdebconf
melunko@848: # dh_installlogrotate
melunko@848: # dh_installemacsen
melunko@848: # dh_installpam
melunko@848: # dh_installmime
melunko@848: # dh_python
melunko@848: # dh_installinit
melunko@848: # dh_installcron
melunko@848: # dh_installinfo
melunko@848: dh_installman
melunko@848: dh_link
melunko@848: dh_strip
melunko@848: dh_compress
melunko@848: dh_fixperms
melunko@848: # dh_perl
melunko@848: # dh_makeshlibs
melunko@848: dh_installdeb
melunko@848: dh_shlibdeps
melunko@848: dh_gencontrol
melunko@848: dh_md5sums
melunko@848: dh_builddeb
melunko@848:
melunko@848: binary: binary-indep binary-arch
melunko@848: .PHONY: build clean binary-indep binary-arch binary install