Skip to content

Commit

Permalink
dev: prefix each result with board
Browse files Browse the repository at this point in the history
  • Loading branch information
ayufan committed Nov 20, 2023
1 parent 19b5ce3 commit f2f4a81
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Cleanup old packages
run: rm -f *.deb
- name: Build packages
run: make all-boards
run: make all
- name: Release package
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
14 changes: 10 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ export RELEASE ?= 1
export RELEASE_NAME ?= $(shell cat VERSION)-$(RELEASE)
export RELEASE_VERSION ?= $(RELEASE_NAME)-g$(shell git rev-parse --short HEAD)

SHELL := /bin/bash

all:

version:
Expand All @@ -12,13 +14,17 @@ release:

ifeq (,$(BOARD_TARGET))

all:
@echo $(patsubst root-%,%-board,$(wildcard root-*))
all: $(patsubst root-%,%-board,$(wildcard root-*))
clean: $(patsubst root-%,%-clean,$(wildcard root-*))

all-boards: $(patsubst root-%,%-board,$(wildcard root-*))
list:
@echo $(patsubst root-%,%-board,$(wildcard root-*))

%-board:
make BOARD_TARGET=$(patsubst %-board,%,$@)
make BOARD_TARGET=$(patsubst %-board,%,$@) &> >(ts "[$(patsubst %-board,%,$@)]")

%-clean:
make clean BOARD_TARGET=$(patsubst %-clean,%,$@) &> >(ts "[$(patsubst %-clean,%,$@)]")

else

Expand Down

0 comments on commit f2f4a81

Please sign in to comment.