From d56138d8ec9cdee2fa09ff7fb36b8d0f6c6ad957 Mon Sep 17 00:00:00 2001 From: "Erich E. Hoover" Date: Mon, 17 Feb 2014 10:09:44 -0700 Subject: [PATCH] Allow Makefile DESTDIR to contain a relative path. --- patches/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/patches/Makefile b/patches/Makefile index d4cb8537..e1c651b2 100644 --- a/patches/Makefile +++ b/patches/Makefile @@ -5,11 +5,12 @@ install: cd $(CURDIR)/..; ./generate-patchlist.sh > $(CURDIR)/patch-list.patch; # Apply our patches to Wine + cd $(DESTDIR); \ for DIR in $$(find $(CURDIR) -type d | sort); do \ for FILE in $$(ls $$DIR | sort | grep '\.patch$$'); do \ SHORTNAME=$$(echo "$$DIR/$$FILE" | sed 's|$(CURDIR)|\.|g' ); \ printf "Applying patch '$$SHORTNAME'...\n"; \ - cd $(DESTDIR); $(PATCH) < $$DIR/$$FILE || cat || exit 1; \ + $(PATCH) < $$DIR/$$FILE || cat || exit 1; \ done \ done