fix: make default

This commit is contained in:
Lance R. Vick 2024-02-13 09:27:10 -08:00
parent 3d3077dc4e
commit ee459617c5
No known key found for this signature in database
GPG key ID: 8E47A1EC35A1551D

View file

@ -13,26 +13,20 @@ NOCACHE_FLAG=
endif
export NOCACHE_FLAG
clean_logs := $(shell rm *.log 2>&1 >/dev/null || :)
DEFAULT_GOAL := default
.PHONY: default
default: all
include src/macros.mk
include src/packages.mk
include src/groups.mk
# Commented out until sxctl supports new folder layout
#src/packages.mk: out/sxctl/index.json $(shell find packages/*/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
default: compat digests.txt
.PHONY: all
all: $(shell find packages/* -type d -exec sh -c 'basename {} | tr "\n" " "' \; )
all: \
compat \
$(shell find packages/* -type d -exec sh -c 'basename {} | tr "\n" " "' \; ) \
digests.txt
.PHONY: compat
compat:
@ -54,3 +48,14 @@ digests.txt: all
out/graph.svg: Makefile
$(MAKE) -Bnd | make2graph | dot -Tsvg -o graph.svg
# Commented out until sxctl supports new folder layout
#src/packages.mk: out/sxctl/index.json $(shell find packages/*/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 $@
#