From e505f991df200d3ff8c3a23be080cbba54aa8002 Mon Sep 17 00:00:00 2001 From: Anthony Scemama Date: Thu, 25 Nov 2021 15:46:42 +0100 Subject: [PATCH] Fixed generated.mk --- tools/build_makefile.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/build_makefile.py b/tools/build_makefile.py index b01a256..552077b 100755 --- a/tools/build_makefile.py +++ b/tools/build_makefile.py @@ -5,6 +5,7 @@ from __future__ import print_function from glob import glob import os +import subprocess def main(): wd = os.getcwd() @@ -247,11 +248,10 @@ def main(): "" ] tmp = "EXTRA_DIST += " - for dir in glob("share/qmckl/test_data/*"): - for f in glob("%s/*"%(dir)): - tmp += " \\\n "+f - for dir in glob("share/qmckl/test_data/*.*"): - tmp += " \\\n "+f + r = subprocess.check_output("git ls-tree --name-only -r master".split()) + for line in r.splitlines(): + if "share/qmckl/test_data/" in line: + tmp += " \\\n " + line tmp += "\n" output += tmp.split("\n")