summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorOwen W. Taylor <otaylor@fishsoup.net>2013-09-06 10:15:00 -0400
committerOwen W. Taylor <otaylor@fishsoup.net>2013-09-06 10:18:24 -0400
commit5ae7a500636ddc28bcf7a18427f388c8790623b3 (patch)
treee28608cd80180cd6d60c984c8367da668984480f /Makefile
parent6cf0c4ceb89e68db4478d74c21d172b3e65e8d2b (diff)
downloadgit-bz-5ae7a500636ddc28bcf7a18427f388c8790623b3.tar.gz
Make srcdir != builddir builds work
Add $(VPATH), correct paths
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files 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 $<