Skip to content

Rework on Makefile after refactoring #518

@chetanr25

Description

@chetanr25

Rework Makefile: make init vs make up, thin wrappers, drop frontend targets

Context

The current Makefile is confusing about when models get downloaded:

  • make fireform runs build up pull-model → downloads the extraction model (qwen).
  • make up separately triggers whisper model downloads.

So "which command downloads what" is unclear, and model setup is tangled into the run flow. Also, the frontend has moved to its own repo (fireform-desktop), so all frontend Make targets are now dead weight.

Goal

Split setup from run, and make targets thin wrappers over scripts/.

  • make init — one-time setup: build images, pull all required models (extraction + whisper), init DB. Everything heavy/one-time happens here.
  • make up — just run the containers. If init hasn't been run (required model/DB missing), fail with a clear error message telling the user to run make init first. (How we detect this marker file, model check, etc. we'll decide in the PR.)
  • Make targets delegate to scripts/ (e.g. make pull-model./scripts/pull-model.sh) instead of inlining docker exec commands.

Tasks

  • Add make init that performs full first-time setup (build + all model pulls + DB init).
  • Slim make up to only start containers; add a precondition check that errors clearly if init was never run.
  • Convert inline Makefile commands to call the migrated scripts/.
  • Remove all frontend targets (logs-frontend, frontend build/up bits, frontend mentions in help) frontend lives in fireform-desktop now.
  • Update the help output to reflect the new init/up split.

Depends on

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions