Debian Codegraph @

macOS/Makefile

raw
1 # Copyright © 2019-2025 Dynare Team
2 #
3 # This file is part of Dynare.
4 #
5 # Dynare is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # Dynare is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with Dynare. If not, see <https://www.gnu.org/licenses/>.
17
18 ARCHS = arm64 x86_64
19 BUILDS = $(addprefix build-, $(ARCHS))
20 DEPS = $(addprefix deps-, $(ARCHS))
21 CLEAN_DEPS = $(addprefix clean-deps-, $(ARCHS))
22 CLEAN_DEPS_ALL = $(addprefix clean-deps-all-, $(ARCHS))
23
24 .PHONY: build $(BUILDS) $(DEPS) $(CLEAN_DEPS) $(CLEAN_DEPS_ALL) clean-pkgs clean clean-all
25
26 build: $(BUILDS)
27
28 $(BUILDS): build-%: deps-%
29 ./build.sh $*
30
31 $(DEPS): deps-%:
32 gmake -C deps PKG_ARCH=$*
33
34 $(CLEAN_DEPS): clean-deps-%:
35 gmake -C deps clean PKG_ARCH=$*
36
37 $(CLEAN_DEPS_ALL): clean-deps-all-%:
38 gmake -C deps clean-all PKG_ARCH=$*
39
40 clean-pkgs:
41 rm -rf pkg
42
43 # Clean everything except downloaded tarballs of dependencies
44 clean: clean-pkgs $(CLEAN_DEPS)
45
46 # Clean everything (including downloaded tarballs of dependencies)
47 clean-all: clean-pkgs $(CLEAN_DEPS_ALL)