From 10ef7a31cfa896fb8a4eddde92c4b7d1e7477ad6 Mon Sep 17 00:00:00 2001
From: teor <teor@torproject.org>
Date: Wed, 6 Nov 2019 12:29:35 +1000
Subject: [PATCH] Makefile: Fix "make check-includes" for out-of-tree builds

Previously, it would run on the build tree, which did not contain
any sources.

Fixes bug 31335; bugfix on 0.3.5.1-alpha.
---
 Makefile.am      | 2 +-
 changes/bug31335 | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)
 create mode 100644 changes/bug31335

diff --git a/Makefile.am b/Makefile.am
index 485324fc79..03593df161 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -370,7 +370,7 @@ endif
 
 check-includes:
 if USEPYTHON
-	$(PYTHON) $(top_srcdir)/scripts/maint/practracker/includes.py
+	$(PYTHON) $(top_srcdir)/scripts/maint/practracker/includes.py $(top_srcdir)
 endif
 
 check-best-practices:
diff --git a/changes/bug31335 b/changes/bug31335
new file mode 100644
index 0000000000..f633cf8b24
--- /dev/null
+++ b/changes/bug31335
@@ -0,0 +1,3 @@
+  o Minor bugfixes (code quality):
+    - Fix "make check-includes" so it runs correctly on out-of-tree builds.
+      Fixes bug 31335; bugfix on 0.3.5.1-alpha.
-- 
GitLab