From bfff2360159583de28612fe2466d2d3f26a58085 Mon Sep 17 00:00:00 2001 From: d3v-null Date: Tue, 24 Sep 2024 08:31:36 +0800 Subject: [PATCH] fix macos makefile --- Makefile.toml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Makefile.toml b/Makefile.toml index e6cf576..a6acb1a 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -122,8 +122,19 @@ dependencies = ["install_cfitsio"] [tasks.linux_install_deps] dependencies = ["linux_install_aoflagger"] +[tasks.mac_install_deps] +script = """ +if [[ $(uname -m) == 'arm64' ]]; then + arch -arm64 brew upgrade || echo "huh?" + arch -arm64 brew install casacore/tap/casacore mwatelescope/tap/aoflagger +else + brew install casacore/tap/casacore mwatelescope/tap/aoflagger +fi +""" + [tasks.install_deps] linux_alias = "linux_install_deps" +mac_alias = "mac_install_deps" [tasks.linux_check_deps] script = """