diff options
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..721cc26 --- /dev/null +++ b/debian/rules @@ -0,0 +1,68 @@ +#!/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=udp-broadcast-relay +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 |