From ef96bb1adba6861fbc77edb74cd3b675634af33f Mon Sep 17 00:00:00 2001 From: "Jason N." <33561705+JasonN3@users.noreply.github.com> Date: Fri, 29 Mar 2024 14:51:14 -0400 Subject: [PATCH] fix reference --- .github/workflows/test_iso.yml | 2 +- test/Makefile | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_iso.yml b/.github/workflows/test_iso.yml index ec37f6c..68719bd 100644 --- a/.github/workflows/test_iso.yml +++ b/.github/workflows/test_iso.yml @@ -80,7 +80,7 @@ jobs: run: | sudo apt-get update sudo apt-get install -y make - sudo make install-test-deps PACKAGE_MANAGER=apt-get + sudo make test/iso/install-deps PACKAGE_MANAGER=apt-get - name: Download generated ISO uses: actions/download-artifact@v4 diff --git a/test/Makefile b/test/Makefile index 3ef6e63..7946d6b 100644 --- a/test/Makefile +++ b/test/Makefile @@ -9,6 +9,11 @@ $(filter-out README.md Makefile,$(wildcard */*)): $(eval TARGET=$(subst $(DIR)/,,$@)) $(MAKE) -w -C $(DIR) $(TARGET) +.DEFAULT: + $(eval DIR=$(firstword $(subst /, ,$@))) + $(if $(filter-out $(DIR),$@), $(eval TARGET=$(subst $(DIR)/,,$@)),$(eval TARGET=)) + $(MAKE) -w -C $(DIR) $(TARGET) + install-deps: $(foreach DIR,$(filter-out README.md Makefile,$(wildcard *)),$(MAKE) -w -C $(DIR) install-deps;)