Import('*')

# Both documents are one build step: they cross-reference each other, so
# neither resolves without the other's aux file.
target = ['#source/paper/inventory_rfs.pdf',
          '#source/paper/internet_appendix_rfs.pdf']
source = ['#source/paper/compile_paper.py',
          '#source/paper/inventory_rfs.tex',
          '#source/paper/internet_appendix_rfs.tex',
          '#source/paper/inventory_project.bib',
          '#source/paper/jwstyle.tex',
          Glob('#source/figures/main/raw/*.pdf'),
          Glob('#source/figures/appendix/raw/*.pdf'),
          Glob('#source/tables/*.tex'),
          Glob('#source/paper/numbers/*.tex')]
env.Python(target, source)
