Collection of cookbooks for Podman Quadlets
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

27 lines
863 B

SUBDIRS := $(wildcard */Makefile)
SUBDIRS := $(dir $(SUBDIRS))
.PHONY: all help butane clean dryrun fcos-vm $(SUBDIRS)
all: help
help:
@echo "Available targets:"
@echo " butane - Build Butane specifications suitable for Fedora CoreOS"
@echo " clean - Remove the quadlets persistent data and configuration"
@echo " dryrun - Perform a dry run of the podman systemd generator"
@echo " fcos-vm - Launch a Fedora CoreOS VM with the generated Butane spec"
@echo " clean-vm - Clean up the Fedora CoreOS VM and its resources"
dryrun: $(SUBDIRS)
butane: $(SUBDIRS)
clean: $(SUBDIRS)
fcos-vm: $(SUBDIRS)
clean-vm: $(SUBDIRS)
$(SUBDIRS):
@run() { echo $$*; "$$@"; }; \
if echo $(MAKECMDGOALS) | grep -Eq 'butane|fcos-vm'; then \
run $(MAKE) -C $@ $(MAKECMDGOALS); \
else \
run $(MAKE) -C $@ $(MAKECMDGOALS); \
fi