1 # Implements the patch and unpatch targets, called when building packages.
3 # -*- Makefile -*-, you silly Emacs!
6 DEBQUILTRC
= debian
/quiltrc
7 QUILTOPT
= --quiltrc
$(DEBQUILTRC
)
8 QUILT
= quilt
$(QUILTOPT
)
12 @if
test -r debian
/patches
/series.
$(DEB_HOST_ARCH
); then \
13 pc=".pc.$(DEB_HOST_ARCH)"; \
15 ln
-sf ..
/debian
/patches
/series.
$(DEB_HOST_ARCH
) $$pc/series
; \
16 QUILT_PC
="$$pc" $(QUILT
) upgrade || true
; \
17 if QUILT_PC
="$$pc" $(QUILT
) next
>/dev
/null
2>&1; then \
18 echo
"Applying architecture specific patches... "; \
19 QUILT_PC
="$$pc" $(QUILT
) push
-a
-v
; \
25 @if
test -r debian
/patches
/series.
$(DEB_HOST_ARCH
); then \
26 pc=".pc.$(DEB_HOST_ARCH)"; \
27 QUILT_PC
="$$pc" $(QUILT
) upgrade || true
; \
28 if QUILT_PC
="$$pc" $(QUILT
) applied
>/dev
/null
2>&1; then \
29 echo
"Unapplying architecture specific patches..."; \
30 QUILT_PC
="$$pc" $(QUILT
) pop
-a
-v
; \
37 @if
$(QUILT
) applied
>/dev
/null
2>&1; then \
38 echo
"Unapplying Debian patches..." ; \
39 $(QUILT
) pop
-a
-v
; \
41 @while
$(QUILT
) next
; do \