2023-07-15 23:45:59 +02:00
|
|
|
# This file is part of LibreWands.
|
|
|
|
# LibreWands 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.
|
|
|
|
#
|
|
|
|
# LibreWands 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
|
|
|
|
# along with LibreWands. If not, see https://www.gnu.org/licenses/.
|
2023-07-01 06:40:19 +02:00
|
|
|
|
2023-07-16 00:20:38 +02:00
|
|
|
.POSIX:
|
2023-06-28 03:39:00 +02:00
|
|
|
|
2023-07-16 00:20:38 +02:00
|
|
|
PREFIX = /usr/local/
|
|
|
|
BUILDDIR = Build/
|
|
|
|
ARTDIR = $(BUILDDIR)/Art
|
2023-06-28 01:52:50 +02:00
|
|
|
|
2023-07-16 00:20:38 +02:00
|
|
|
all: editMaps
|
2023-06-28 01:52:50 +02:00
|
|
|
|
2023-07-16 00:20:38 +02:00
|
|
|
install:
|
|
|
|
+cd Source/ && $(MAKE) install PREFIX=$(PREFIX)
|
|
|
|
+cd Documentation/ && $(MAKE) install PREFIX=$(PREFIX)
|
2023-06-28 01:52:50 +02:00
|
|
|
|
2023-07-16 00:20:38 +02:00
|
|
|
assets:
|
|
|
|
+cd Assets/Art/ && $(MAKE) BUILDDIR=$(BUILDDIR)/Art
|
2023-06-28 03:24:04 +02:00
|
|
|
|
2023-07-16 00:20:38 +02:00
|
|
|
doc: assets
|
|
|
|
+cd Documentation/ && $(MAKE)
|
2023-06-28 01:52:50 +02:00
|
|
|
|
2023-06-28 03:24:04 +02:00
|
|
|
editMaps:
|
2023-07-16 00:20:38 +02:00
|
|
|
+cd Source/ && $(MAKE) CFLAGS="-O3 -Wall"
|
2023-07-01 15:59:14 +02:00
|
|
|
|
|
|
|
editMaps-debug:
|
2023-07-16 00:20:38 +02:00
|
|
|
+cd Source/ && $(MAKE) \
|
|
|
|
CFLAGS="-Og -Wall -fanalyzer" \
|
|
|
|
PROJECT=librewands_editmaps
|
2023-07-01 04:18:03 +02:00
|
|
|
|
2023-07-02 13:55:47 +02:00
|
|
|
test:
|
2023-07-16 00:20:38 +02:00
|
|
|
+cd Tests/ && $(MAKE)
|
2023-07-02 13:55:47 +02:00
|
|
|
|
2023-07-01 04:18:03 +02:00
|
|
|
format:
|
2023-07-16 00:20:38 +02:00
|
|
|
+cd Source/ && $(MAKE) format
|
|
|
|
+cd Tests/ && $(MAKE) format
|