From 142a0373fb9f3546f1d5c5e25ec5ec7b86c4433c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niklas=20S=C3=B6derlund?= Date: Fri, 2 Sep 2016 16:15:13 +0200 Subject: Do not use for loop in data/frames/Makefile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This construct depends on the shell used and do not work for all shells. Instead use make rules to find and extract all *.pnm.gz frames. Signed-off-by: Niklas Söderlund Signed-off-by: Laurent Pinchart --- data/frames/Makefile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'data/frames') diff --git a/data/frames/Makefile b/data/frames/Makefile index dba2799..37c284f 100644 --- a/data/frames/Makefile +++ b/data/frames/Makefile @@ -1,13 +1,15 @@ +frames=$(patsubst %.pnm.gz,%.pnm,$(wildcard *.pnm.gz)) + all: ./gen-lut.py clean: @rm -f *.bin -install: +%.pnm: %.pnm.gz + gzip -dk $< + +install: $(frames) mkdir -p $(INSTALL_DIR)/frames/ - for frame in *.pnm.gz ; do - gzip -dk $(frame) - mv ${frame/.gz/} $(INSTALL_DIR)/frames/ - done + mv $(frames) $(INSTALL_DIR)/frames/ cp *.bin $(INSTALL_DIR)/frames/ -- cgit v1.2.3