feat: update makefile
Some checks failed
Build / build (pull_request) Failing after 43s

This commit is contained in:
Ben Vincent 2024-11-23 14:16:35 +11:00
parent 63c708183b
commit 04a4d6d795
2 changed files with 6 additions and 5 deletions

View File

@ -21,9 +21,9 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3
- name: Build Docker Image
- name: Build Packages
run: |
make build
make all
- name: Show tree
run: |

View File

@ -7,9 +7,12 @@ NFPM_VERSION := 2.41.1
PACKAGES := $(shell find $(RPMS_DIR) -mindepth 2 -maxdepth 2 -type d | sed "s|$(RPMS_DIR)/||")
# Default target to build all packages and versions
.PHONY: all
.PHONY: all list build buildall clean
all: $(PACKAGES)
list:
@echo "$(PACKAGES)"
# Build specific package/version
.PHONY: $(PACKAGES)
$(PACKAGES):
@ -19,7 +22,6 @@ $(PACKAGES):
$(MAKE) build PACKAGE_NAME=$$PACKAGE_NAME PACKAGE_VERSION=$$PACKAGE_VERSION
# Build target
.PHONY: build
build:
@mkdir -p $(ROOT_DIR)/dist/$(PACKAGE_NAME)/
@echo "Preparing to build $(PACKAGE_NAME) version $(PACKAGE_VERSION)"
@ -39,7 +41,6 @@ build:
docker rm $(PACKAGE_NAME)-$(PACKAGE_VERSION)-builder
# Clean target
.PHONY: clean
clean:
@echo "Cleaning build artifacts..."
rm -rf $(ROOT_DIR)/dist