diff options
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/debian/rules b/debian/rules index 8fe7d91..80d328a 100755 --- a/debian/rules +++ b/debian/rules @@ -19,7 +19,7 @@ endif CFLAGS += -DYY_NO_INPUT build: debian/stamp-build -debian/stamp-build: patch +debian/stamp-build: dh_testdir # ./configure @@ -32,7 +32,7 @@ debian/stamp-build: patch touch $@ -clean: clean1 unpatch +clean: clean1 clean1: dh_testdir dh_testroot @@ -53,20 +53,6 @@ debian/stamp-install: debian/stamp-build touch $@ -# And now the simple things for dpatch. Here we only apply/unapply the patches. -# You can do more things with dpatch, like having patches only applied on -# a special architecture - see the non-dh version of the sample for this! -patch: patch-stamp -patch-stamp: - dpatch apply-all - dpatch cat-all >patch-stamp - touch patch-stamp - -unpatch: - dpatch deapply-all - rm -rf patch-stamp debian/patched - - # Build architecture-independent files here. binary-indep: @@ -86,7 +72,11 @@ binary-arch: build install dh_fixperms -a dh_installdeb -a dh_shlibdeps -a - dh_gencontrol -a + if [ -f "../.VYATTA_DEV_BUILD" ]; then \ + dh_gencontrol -- -v999.dev; \ + else \ + dh_gencontrol; \ + fi dh_md5sums -a dh_builddeb -a @@ -94,5 +84,5 @@ source diff: @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false binary: binary-indep binary-arch -.PHONY: build clean binary-indep binary-arch binary install patch unpatch \ +.PHONY: build clean binary-indep binary-arch binary install \ clean1 |