summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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/