fix: recursive packages.mk build

This commit is contained in:
Lance R. Vick 2024-02-13 07:43:23 -08:00
parent 1cdabc180e
commit 2b5d338f29
No known key found for this signature in database
GPG key ID: 8E47A1EC35A1551D

View file

@ -16,13 +16,14 @@ clean_logs := $(shell rm *.log 2>&1 >/dev/null || :)
include src/macros.mk
include src/packages.mk
src/packages.mk: sxctl $(shell find src/*/*/Containerfile | tr '\n' ' ')
src/packages.mk: out/sxctl/index.json $(shell find src/*/*/Containerfile | tr '\n' ' ')
env -C out/sxctl tar -cf - . | docker load
docker run \
--rm \
--volume .:/src \
--user $(shell id -u):$(shell id -g) \
stagex/sxctl -baseDir=/src gen make
touch $@
DEFAULT_GOAL := default
.PHONY: default