1
0
mirror of https://github.com/TREX-CoE/qmckl.git synced 2024-06-14 01:05:41 +02:00

Fixed generated.mk

This commit is contained in:
Anthony Scemama 2021-11-25 15:46:42 +01:00
parent 18a2af8025
commit e505f991df

View File

@ -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")