diff options
Diffstat (limited to 'debian/quilt.make')
-rw-r--r-- | debian/quilt.make | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/debian/quilt.make b/debian/quilt.make new file mode 100644 index 0000000..f9fe718 --- /dev/null +++ b/debian/quilt.make @@ -0,0 +1,24 @@ +# +# This file tries to mimick /usr/share/dpatch/dpatch.make +# + +# -*- Makefile -*-, you silly Emacs! +# vim: set ft=make: + +# QUILT_STAMPFN: stamp file to use +QUILT_STAMPFN ?= stamp-patched + +# QUILT_PATCH_DIR: where the patches live +QUILT_PATCH_DIR ?= debian/patches + +patch: $(QUILT_STAMPFN) +$(QUILT_STAMPFN): + # quilt exits with 2 as return when there was nothing to do. + # That's not an error here (but it's usefull to break loops in crude scripts) + QUILT_PATCHES=$(QUILT_PATCH_DIR) quilt push -a || test $$? = 2 + touch debian/$(QUILT_STAMPFN) + +unpatch: + QUILT_PATCHES=$(QUILT_PATCH_DIR) quilt pop -a -R || test $$? = 2 + rm -rf .pc debian/$(QUILT_STAMPFN) + |