2023-04-05 11:24:56 -04:00
|
|
|
TANGLE=tclsh scripts/tangle.tcl
|
2023-04-10 14:01:35 -04:00
|
|
|
ALL=ubi9epel ubuntu fossil opensuse alpine
|
2023-04-05 11:24:56 -04:00
|
|
|
|
2023-04-10 14:01:35 -04:00
|
|
|
.SUFFIXES: .md .dockerfile .test
|
2023-04-05 11:24:56 -04:00
|
|
|
|
|
|
|
.md.dockerfile:
|
2023-04-05 11:32:59 -04:00
|
|
|
@$(TANGLE) -R $@ $< > $@
|
2023-04-10 14:01:35 -04:00
|
|
|
.md.test:
|
|
|
|
$(TANGLE) -R $(@:%.test=%.dockerfile) $< | docker build -t mek:$@ -f - .
|
2023-04-05 11:24:56 -04:00
|
|
|
|
|
|
|
default: all
|
|
|
|
|
2023-04-10 14:01:35 -04:00
|
|
|
all: $(ALL:%=%.dockerfile)
|
|
|
|
|
|
|
|
test: $(ALL:%=%.test)
|
2023-04-05 11:32:59 -04:00
|
|
|
|
|
|
|
clean:
|
|
|
|
@rm -f *~
|
2023-04-10 14:01:35 -04:00
|
|
|
@rm -rf $(ALL:%=%.dockerfile)
|
|
|
|
|
|
|
|
.PHONY: default all clean test
|
|
|
|
|