diff options
Diffstat (limited to 'web/content')
-rwxr-xr-x | web/content/copy.py | 9 | ||||
-rw-r--r-- | web/content/meson.build | 24 |
2 files changed, 33 insertions, 0 deletions
diff --git a/web/content/copy.py b/web/content/copy.py new file mode 100755 index 0000000..0b06e6d --- /dev/null +++ b/web/content/copy.py @@ -0,0 +1,9 @@ +#!/usr/bin/env python3 + + +import shutil +import sys + + +print(f"Copying {sys.argv[1]} to {sys.argv[2]}") +shutil.copyfile(sys.argv[1], sys.argv[2]) diff --git a/web/content/meson.build b/web/content/meson.build index 75d3120..5046982 100644 --- a/web/content/meson.build +++ b/web/content/meson.build @@ -3,3 +3,27 @@ configure_file( output: 'simple.css', copy: true, ) + +schematic_web = custom_target('schematic_web', + output: ['schematic.pdf'], + command: [ + 'copy.py', + schematic_pdf, + meson.current_build_dir() / 'schematic.pdf' + ], + depends: [ + schematic, + ], +) + +bom_web = custom_target('bom_web', + output: ['bill-of-materials.csv'], + command: [ + 'copy.py', + bom_csv, + meson.current_build_dir() / 'bill-of-materials.csv' + ], + depends: [ + bom, + ], +) |