Makefile (1285B)
1 # Copyright (C) 2021, 2022, 2026 |Meso|Star> (contact@meso-star.com) 2 # 3 # This program is free software: you can redistribute it and/or modify 4 # it under the terms of the GNU General Public License as published by 5 # the Free Software Foundation, either version 3 of the License, or 6 # (at your option) any later version. 7 # 8 # This program is distributed in the hope that it will be useful, 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 # GNU General Public License for more details. 12 # 13 # You should have received a copy of the GNU General Public License 14 # along with this program. If not, see <http://www.gnu.org/licenses/>. 15 16 .POSIX: 17 18 VERSION = 0.2.1 19 NAME = Stardis-Starter-Pack-$(VERSION) 20 ARCHIVE = $(NAME).tar.gz 21 22 SCRIPTS=\ 23 city/run_IR_rendering.sh\ 24 cube/run_dump_path.sh\ 25 cube/run_green_evaluation.sh\ 26 cube/run_probe_computation.sh\ 27 heatsink/run_medium_computation.sh\ 28 heatsink/run_medium_computation_multiple.sh\ 29 porous/run_IR_rendering.sh 30 31 default: # Nothing to do 32 33 dist: 34 git archive -v --prefix="$(NAME)/" -o "$(ARCHIVE)" master 35 36 distclean: 37 rm -f "$(ARCHIVE)" 38 39 lint: 40 @printf '%s\n' $(SCRIPTS) | while read -r i; do \ 41 printf 'linting %s\n' "$${i}"; \ 42 shellcheck -o all "$${i}"; \ 43 done