diff options
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/debian/rules b/debian/rules index 835a7c8..8fe7d91 100755 --- a/debian/rules +++ b/debian/rules @@ -19,7 +19,7 @@ endif CFLAGS += -DYY_NO_INPUT build: debian/stamp-build -debian/stamp-build: +debian/stamp-build: patch dh_testdir # ./configure @@ -32,7 +32,8 @@ debian/stamp-build: touch $@ -clean: +clean: clean1 unpatch +clean1: dh_testdir dh_testroot rm -f debian/stamp-* @@ -52,6 +53,21 @@ 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: @@ -78,4 +94,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 +.PHONY: build clean binary-indep binary-arch binary install patch unpatch \ + clean1 |