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 - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Build Docker Image - name: Build Packages
run: | run: |
make build make all
- name: Show tree - name: Show tree
run: | 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)/||") PACKAGES := $(shell find $(RPMS_DIR) -mindepth 2 -maxdepth 2 -type d | sed "s|$(RPMS_DIR)/||")
# Default target to build all packages and versions # Default target to build all packages and versions
.PHONY: all .PHONY: all list build buildall clean
all: $(PACKAGES) all: $(PACKAGES)
list:
@echo "$(PACKAGES)"
# Build specific package/version # Build specific package/version
.PHONY: $(PACKAGES) .PHONY: $(PACKAGES)
$(PACKAGES): $(PACKAGES):
@ -19,7 +22,6 @@ $(PACKAGES):
$(MAKE) build PACKAGE_NAME=$$PACKAGE_NAME PACKAGE_VERSION=$$PACKAGE_VERSION $(MAKE) build PACKAGE_NAME=$$PACKAGE_NAME PACKAGE_VERSION=$$PACKAGE_VERSION
# Build target # Build target
.PHONY: build
build: build:
@mkdir -p $(ROOT_DIR)/dist/$(PACKAGE_NAME)/ @mkdir -p $(ROOT_DIR)/dist/$(PACKAGE_NAME)/
@echo "Preparing to build $(PACKAGE_NAME) version $(PACKAGE_VERSION)" @echo "Preparing to build $(PACKAGE_NAME) version $(PACKAGE_VERSION)"
@ -39,7 +41,6 @@ build:
docker rm $(PACKAGE_NAME)-$(PACKAGE_VERSION)-builder docker rm $(PACKAGE_NAME)-$(PACKAGE_VERSION)-builder
# Clean target # Clean target
.PHONY: clean
clean: clean:
@echo "Cleaning build artifacts..." @echo "Cleaning build artifacts..."
rm -rf $(ROOT_DIR)/dist rm -rf $(ROOT_DIR)/dist