From 7abb846a810938a5dde1eea48f20d386f77847b8 Mon Sep 17 00:00:00 2001 From: murat Date: Tue, 26 May 2026 18:38:51 +0300 Subject: [PATCH] fixed github actions build i hate llms so much --- .gitignore | 2 ++ Makefile | 14 +++++++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 4efed76..2c085cc 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ build/ Build/ build-*/ +dist/ + diff --git a/Makefile b/Makefile index b62aa08..22e6998 100644 --- a/Makefile +++ b/Makefile @@ -17,19 +17,19 @@ VERSION ?= $(shell git describe --tags --dirty --always 2>/dev/null) all: build -build: | $(BUILD_DIR) build: $(BUILD_DIR)/$(APP) -$(BUILD_DIR)/$(APP): $(SRC) | $(BUILD_DIR) +$(BUILD_DIR)/$(APP): $(SRC) | $(BUILD_DIR)/.dir $(CXX) $(CXXFLAGS) -o $@ $< $(LDFLAGS) -$(BUILD_DIR): + +$(BUILD_DIR)/.dir: mkdir -p $(BUILD_DIR) + touch $@ run: build ./$(BUILD_DIR)/$(APP) -install: | $(BUILD_DIR) install: build install -d "$(DESTDIR)$(BINDIR)" install -m 0755 $(BUILD_DIR)/$(APP) "$(DESTDIR)$(BINDIR)/$(APP)" @@ -40,11 +40,11 @@ uninstall: clean: rm -f $(BUILD_DIR)/$(APP) -dist: | $(BUILD_DIR) $(DIST_DIR) -dist: build +dist: build | $(DIST_DIR)/.dir tar -C $(BUILD_DIR) -czf $(DIST_DIR)/$(APP)-$(VERSION)-linux-x86_64-gnu.tar.gz $(APP) -$(DIST_DIR): +$(DIST_DIR)/.dir: mkdir -p $(DIST_DIR) + touch $@ release: clean build dist