LibreWands/Makefile

47 lines
1.2 KiB
Makefile
Raw Normal View History

# 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
.POSIX:
2023-06-28 03:39:00 +02:00
PREFIX = /usr/local/
BUILDDIR = Build/
ARTDIR = $(BUILDDIR)/Art
all: editMaps
install:
+cd Source/ && $(MAKE) install PREFIX=$(PREFIX)
+cd Documentation/ && $(MAKE) install PREFIX=$(PREFIX)
assets:
+cd Assets/Art/ && $(MAKE) BUILDDIR=$(BUILDDIR)/Art
2023-06-28 03:24:04 +02:00
doc: assets
+cd Documentation/ && $(MAKE)
2023-06-28 03:24:04 +02:00
editMaps:
+cd Source/ && $(MAKE) CFLAGS="-O3 -Wall"
editMaps-debug:
+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:
+cd Tests/ && $(MAKE)
2023-07-02 13:55:47 +02:00
2023-07-01 04:18:03 +02:00
format:
+cd Source/ && $(MAKE) format
+cd Tests/ && $(MAKE) format