File: quilt.make

package info (click to toggle)
quilt 0.60-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,856 kB
  • sloc: sh: 5,425; perl: 1,312; lisp: 430; makefile: 414
file content (27 lines) | stat: -rw-r--r-- 670 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# -*- Makefile -*-, you silly Emacs!
# vim: set ft=make:

#
# This file tries to mimick /usr/share/dpatch/dpatch.make
#

# QUILT_STAMPFN: stamp file to use
QUILT_STAMPFN	?= debian/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
	QUILT_PATCHES=$(QUILT_PATCH_DIR) \
		quilt --quiltrc /dev/null push -a || test $$? = 2
	touch $(QUILT_STAMPFN)

unpatch:
	QUILT_PATCHES=$(QUILT_PATCH_DIR) \
		quilt --quiltrc /dev/null pop -a -R || test $$? = 2
	rm -rf .pc $(QUILT_STAMPFN)

.PHONY: patch unpatch