summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>2016-09-02 16:15:13 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2016-09-07 01:01:28 +0300
commit142a0373fb9f3546f1d5c5e25ec5ec7b86c4433c (patch)
treeb4c297bde07cbe1d27cfd8e2b209d3f596236026
parente870da51243720c2baa460dc877728d345c0bbe8 (diff)
Do not use for loop in data/frames/Makefile
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 <niklas.soderlund+renesas@ragnatech.se> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r--data/frames/Makefile12
1 files changed, 7 insertions, 5 deletions
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/