47 lines
1.2 KiB
Makefile
47 lines
1.2 KiB
Makefile
# 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/.
|
|
|
|
.POSIX:
|
|
|
|
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
|
|
|
|
doc: assets
|
|
+cd Documentation/ && $(MAKE)
|
|
|
|
editMaps:
|
|
+cd Source/ && $(MAKE) CFLAGS="-O3 -Wall"
|
|
|
|
editMaps-debug:
|
|
+cd Source/ && $(MAKE) \
|
|
CFLAGS="-Og -Wall -fanalyzer" \
|
|
PROJECT=librewands_editmaps
|
|
|
|
test:
|
|
+cd Tests/ && $(MAKE)
|
|
|
|
format:
|
|
+cd Source/ && $(MAKE) format
|
|
+cd Tests/ && $(MAKE) format
|