patchupdate.py: Define $(APPLY) macro, rename $(APPLY_PATCH) -> $(APPLY_FILE).

This commit is contained in:
Sebastian Lackner
2014-08-09 04:22:16 +02:00
parent 944a550aeb
commit 9087dedefc
3 changed files with 169 additions and 171 deletions

View File

@@ -4,16 +4,15 @@
CURDIR ?= ${{.CURDIR}}
PATCH := $(CURDIR)/../debian/tools/gitapply.sh
APPLY := (cd $(DESTDIR) && $(PATCH))
APPLY_FILE = @echo "Applying $(1)"; $(APPLY) < $(CURDIR)/$(1)
APPLY_PATCH = \
@echo "Applying $(1)"; \
cd $(DESTDIR) && $(PATCH) < $(CURDIR)/$(1)
PATCHLIST := {patchlist}
PATCHLIST := \
{patchlist}
.PHONY: install
install: $(PATCHLIST)
cat *.ok | sort | $(CURDIR)/../debian/tools/patchlist.sh | (cd $(DESTDIR) && $(PATCH))
cat *.ok | sort | $(CURDIR)/../debian/tools/patchlist.sh | $(APPLY)
cd $(DESTDIR) && autoreconf -f
cd $(DESTDIR) && ./tools/make_requests