servuo/makefile
PyrO 836702fad3 Regained linux compability
- 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
2025-12-09 13:11:27 +00:00

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."