Skip to content

Commit

Permalink
Tell the user to run cargo make setup-builder (#731)
Browse files Browse the repository at this point in the history
This lets the user know that they need to run `cargo make setup-builder`
first, in case they run `cargo make run` or similar without doing that first.
  • Loading branch information
keithel-qt authored Sep 14, 2022
1 parent 47781bc commit 1e7fd67
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,16 @@ writefile /tmp/piksi_tools_constants.py ${output.stdout}
exec --fail-on-error ${python} -m py2many --rust=1 /tmp/piksi_tools_constants.py --outdir console_backend/src/
'''

[tasks.check-python-exists]
script_runner = "@duckscript"
script = '''
if not is_path_exists py39
echo "'cargo make setup-builder' needs to be run first."
end
'''

[tasks.generate-resources]
dependencies = ["build-splash-version"]
dependencies = ["check-python-exists", "build-splash-version"]
script_runner = "@duckscript"
script = '''
exec --fail-on-error "${PYSIDE2_RCC}" "resources/console_resources.qrc" "-o" "swiftnav_console/console_resources.py" "-g" "python"
Expand Down

0 comments on commit 1e7fd67

Please sign in to comment.