workshops/slides/makefiles/dependency_ladder/makes/cows

11 lines
217 B
Plaintext
Raw Permalink Normal View History

2024-11-25 13:28:59 +00:00
cows = $(patsubst Forts/fortune_%.md,Cows/cow-%.txt,$(wildcard Forts/fortune_*.md))
$(cows): Cows/cow-%.txt: Forts/fortune_%.md
@mkdir -p $(@D)
cat $< | cowsay > $@
progs += forts
progs += $(cows)
dross += Cows/