fix(makefile): use bash + honor CARGO_TARGET_DIR for install #10
No reviewers
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_foundry_ui!10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_fix_makefile_install_linux"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
make installwas failing on Linux with/bin/sh: 1: source: not foundbecause the Makefile recipe lines usesource $(BUILD_LIB)and/bin/shresolves todashon Debian. After that, install_binaries was looking at atarget/releasethat did not exist becauseCARGO_TARGET_DIRis set to a shared per-user dir.This sets
SHELL := /bin/bashfor recipe execution and makesRELEASE_DIRhonorCARGO_TARGET_DIR— matching the pattern hero_aibroker uses (line 14-15).Related Issue
N/A — surfaced as install-step failure during todays daily-sync.
Changes
SHELL := /bin/bashso recipes execute under bash (sourceworks)RELEASE_DIR ?= $(if $(CARGO_TARGET_DIR),$(CARGO_TARGET_DIR),target)/releaseTest Results
make install ran clean on herodev and produced fresh binaries in ~/hero/bin/ (hero_foundry, hero_foundry_ui, hero_foundry_ui_server).