task.mk/docs/examples/Makefile

19 lines
346 B
Makefile
Raw Permalink Normal View History

2022-09-18 10:00:53 -05:00
MAKEFLAGS += --no-print-directory
COLS ?= 60
ROWS ?= 20
2022-09-24 17:53:30 -05:00
EXAMPLES := check embedded recipe-help
2022-09-18 10:00:53 -05:00
CASTS := $(addsuffix /demo.cast, $(EXAMPLES))
all: $(CASTS)
%/demo.cast: %/record.sh
asciinema rec --cols $(COLS) --rows $(ROWS) --overwrite -c $< $@
2022-09-21 00:11:38 -05:00
check/demo.cast: COLS = 48
2022-09-18 10:00:53 -05:00
check/demo.cast: ROWS = 12
clean:
rm -rf $(CASTS)
.PHONY:all clean