.PHONY: build package publish clean # Variables DIST_DIR := dist VERSION := 1.0.2 build: @echo "Building FeatherDDNS..." @mkdir -p ./bin @go build -buildmode=pie -trimpath -ldflags='-linkmode=external -extldflags="-Wl,-z,relro,-z,now" -s -w' -o ./bin/FeatherDDNS . package: build @echo "Packaging FeatherDDNS using Debian container..." @chmod +x scripts/package.sh scripts/build-deb.sh @VERSION=$(VERSION) ./scripts/package.sh @echo "" @echo "Package built successfully!" publish: @echo "Publishing to Gitea APT registry..." @chmod +x scripts/publish-to-gitea.sh @./scripts/publish-to-gitea.sh clean: @echo "Cleaning build artifacts..." @rm -rf ./bin ./build ./$(DIST_DIR)