mirror of
https://github.com/ServUO/ServUO
synced 2026-08-11 20:23:04 -04:00
- set winforms to false in Scripts.csproj (was that on for just the colors for report graphs??) - added functions that work the same way as the Light and Dark functions, should be the same (untested, but working crossplatform) - unified the makefile, previously you had to use make -f :makexxx, now back to just make, make release, make debug updated the readme
33 lines
583 B
Makefile
33 lines
583 B
Makefile
EXENAME=ServUO
|
|
CONFIG=release
|
|
BUILD_DIR=${CURDIR}
|
|
EXE=$(BUILD_DIR)/$(EXENAME).exe
|
|
|
|
.PHONY: all build run clean release debug
|
|
|
|
all: build run
|
|
|
|
release: CONFIG = release
|
|
release: run
|
|
|
|
debug: CONFIG = debug
|
|
debug: run
|
|
|
|
build:
|
|
@echo "Compile $(EXENAME) for Linux ($(CONFIG))"
|
|
@dotnet build -c $(CONFIG)
|
|
@echo "Done!"
|
|
|
|
run: build
|
|
@if [ -f "$(EXE)" ]; then \
|
|
clear; \
|
|
echo "Running $(EXENAME) in $(CONFIG) mode..."; \
|
|
mono $(EXE) -$(CONFIG); \
|
|
else \
|
|
echo "Executable not found. Did the build succeed?"; \
|
|
exit 1; \
|
|
fi
|
|
|
|
clean:
|
|
@dotnet clean
|
|
@echo "Cleaned build files."
|