2023-03-14 15:33:17 +01:00
|
|
|
# Copyright © 2019-2023 Dynare Team
|
2019-09-16 18:28:34 +02:00
|
|
|
#
|
|
|
|
# This file is part of Dynare.
|
|
|
|
#
|
|
|
|
# Dynare is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# Dynare is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
2021-06-09 17:33:48 +02:00
|
|
|
# along with Dynare. If not, see <https://www.gnu.org/licenses/>.
|
2019-09-16 18:28:34 +02:00
|
|
|
|
2023-10-11 17:27:14 +02:00
|
|
|
ARCHS = arm64 x86_64
|
|
|
|
BUILDS = $(addprefix build-, $(ARCHS))
|
|
|
|
DEPS = $(addprefix deps-, $(ARCHS))
|
|
|
|
CLEAN_DEPS = $(addprefix clean-deps-, $(ARCHS))
|
|
|
|
CLEAN_ALL = $(addprefix clean-all-, $(ARCHS))
|
2019-09-16 18:28:34 +02:00
|
|
|
|
2023-10-11 17:27:14 +02:00
|
|
|
.PHONY: all $(BUILDS) $(DEPS) clean-pkg $(CLEAN_DEPS) $(CLEAN_ALL) clean-all
|
2019-09-30 16:45:36 +02:00
|
|
|
|
2023-10-11 17:27:14 +02:00
|
|
|
all: $(BUILDS)
|
2019-09-30 16:45:36 +02:00
|
|
|
|
2023-10-11 17:27:14 +02:00
|
|
|
$(BUILDS): build-%: deps-%
|
|
|
|
./build.sh $*
|
2019-09-30 16:45:36 +02:00
|
|
|
|
2023-10-11 17:27:14 +02:00
|
|
|
$(DEPS): deps-%:
|
|
|
|
make -C deps DEPS_ARCH=$*
|
2019-09-16 18:28:34 +02:00
|
|
|
|
2023-10-11 17:27:14 +02:00
|
|
|
$(CLEAN_DEPS): clean-deps-%:
|
|
|
|
make -C deps clean-all DEPS_ARCH=$*
|
|
|
|
|
|
|
|
clean-pkg:
|
2019-09-16 18:28:34 +02:00
|
|
|
rm -rf pkg
|
2019-09-30 16:45:36 +02:00
|
|
|
|
2023-10-11 17:27:14 +02:00
|
|
|
$(CLEAN_ALL): clean-all-%: clean-deps-% clean-pkg
|
2019-09-30 16:45:36 +02:00
|
|
|
|
2023-10-11 17:27:14 +02:00
|
|
|
clean-all: $(CLEAN_ALL)
|