# SPDX-FileCopyrightText: 2025 toastal <toastal@posteo.net>
# SPDX-License-Identifier: MPL-2.0
include_rules

!nix-link = |> nix-build --out-link %o ../release.nix |>

# In Nix land this won’t build but for local development, having access to these
# assets built with Nix is required. See: ./nix/package/assets.nix.
ifneq (@(TUP_NIX_LINK),0)
: |> !nix-link -A open-props |> $(ASSETS_DIR)/open-props.css
: |> !nix-link -A mplus-webfonts |> $(ASSETS_DIR)/m+
endif
