finish examples
This commit is contained in:
18
slides/makefiles/examples/pats
Normal file
18
slides/makefiles/examples/pats
Normal file
@@ -0,0 +1,18 @@
|
||||
IMAGES = $(wildcard jpgs/*)
|
||||
COL = $(patsubst jpgs/%,collection/%,$(IMAGES))
|
||||
|
||||
.PHONY: help
|
||||
help:
|
||||
$(info try 'show' or 'output')
|
||||
.PHONY: show
|
||||
show:
|
||||
$(info IMAGES is $(IMAGES))
|
||||
$(info Col is $(COL))
|
||||
|
||||
.PHONY: output
|
||||
output: $(COL)
|
||||
|
||||
collection/%.jpg: jpgs/%.jpg
|
||||
mkdir -p $(@D)
|
||||
cp $< $@
|
||||
|
Reference in New Issue
Block a user