Files
zoitechat/Makefile
deepend d4134c94b3 Swapped glib integer types in the sysinfo interface for standard stdint types to remove glib coupling in the header.
Replaced glib string/util usage in the win32 sysinfo backend with local helpers, a small string builder, and Windows UTF-8 conversion, removing the glib dependency there.
2026-01-25 23:32:33 -07:00

44 lines
1.1 KiB
Makefile

PREFIX ?= /usr/local
BUILD_DIR ?= build
MESON ?= meson
NINJA ?= ninja
MESON_SETUP_ARGS ?=
MESON_COMPILE_ARGS ?=
MESON_INSTALL_ARGS ?=
CONFIG_STAMP := $(BUILD_DIR)/build.ninja
.PHONY: all configure build reconfigure install uninstall clean distclean
all: build
# Only run initial meson setup if we don't have a configured build dir yet.
$(CONFIG_STAMP):
@mkdir -p $(BUILD_DIR)
@env NINJA=$(NINJA) $(MESON) setup $(BUILD_DIR) --prefix=$(PREFIX) $(MESON_SETUP_ARGS)
configure: $(CONFIG_STAMP)
build: configure
@env NINJA=$(NINJA) $(MESON) compile -C $(BUILD_DIR) $(MESON_COMPILE_ARGS)
reconfigure:
@mkdir -p $(BUILD_DIR)
@env NINJA=$(NINJA) $(MESON) setup --reconfigure $(BUILD_DIR) --prefix=$(PREFIX) $(MESON_SETUP_ARGS)
install: build
@env NINJA=$(NINJA) $(MESON) install -C $(BUILD_DIR) $(MESON_INSTALL_ARGS)
uninstall: configure
@$(NINJA) -C $(BUILD_DIR) uninstall
clean:
@if [ -f "$(CONFIG_STAMP)" ]; then \
env NINJA=$(NINJA) $(MESON) compile -C $(BUILD_DIR) --clean; \
else \
echo "Nothing to clean (no $(CONFIG_STAMP))."; \
fi
distclean:
rm -rf $(BUILD_DIR)