#!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 PACKAGE=mdns-repeater PKGDIR=$(CURDIR)/debian/$(PACKAGE) build: build-stamp build-stamp: dh_testdir $(MAKE) touch $@ clean: clean-patched # Clean everything up, including everything auto-generated # at build time that needs not to be kept around in the Debian diff clean-patched: dh_testdir dh_testroot if test -f Makefile ; then $(MAKE) clean ; fi rm -f build-stamp rm -f etc/default/vyatta rm -rf config dh_clean install: build dh_testdir dh_testroot dh_prep dh_installdirs $(MAKE) install DESTDIR=$(PKGDIR) # Build architecture-independent files here. binary-indep: build install rm -f debian/files dh_testdir dh_testroot dh_install dh_installdebconf dh_installinit dh_compress dh_fixperms dh_installdeb if [ -f "../.VYOS_DEV_BUILD" ]; then \ dh_gencontrol -- -v999.dev; \ else \ dh_gencontrol; \ fi dh_md5sums dh_builddeb # Build architecture-dependent files here. binary-arch: build install # This is an architecture independent package # so; we have nothing to do by default. binary: binary-indep .PHONY: build clean binary-indep binary install