From 5ae7a500636ddc28bcf7a18427f388c8790623b3 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Fri, 6 Sep 2013 10:15:00 -0400 Subject: Make srcdir != builddir builds work Add $(VPATH), correct paths --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e6828f3..f346622 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ include Makefile.inc +VPATH=$(srcdir) ifeq ($(enable_documentation),yes) docs = git-bz.html git-bz.1 @@ -9,10 +10,10 @@ endif all: $(docs) %.xml: %.txt - asciidoc -f asciidoc.conf -d manpage -b docbook $< + asciidoc -f $(srcdir)/asciidoc.conf -d manpage -b docbook -o $@ $< %.html: %.txt - asciidoc -f asciidoc.conf -d manpage $< + asciidoc -f $(srcdir)/asciidoc.conf -d manpage -o $@ $< %.1: %.xml xmlto man $< -- cgit