changeset 48:bcaa3b7a0890

Now supporting make install
author Stefano Rivera <stefano@rivera.za.net>
date Sun, 01 Sep 2013 18:26:07 +0200
parents 82036437ebf6
children 91fd5edc6ca9
files .hgignore source/Makefile
diffstat 2 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/.hgignore	Sun Sep 01 18:22:46 2013 +0200
+++ b/.hgignore	Sun Sep 01 18:26:07 2013 +0200
@@ -10,4 +10,4 @@
 .idea
 pymunk/
 pymunk-*/
-source/svg/*.png
+source/**.png
--- a/source/Makefile	Sun Sep 01 18:22:46 2013 +0200
+++ b/source/Makefile	Sun Sep 01 18:26:07 2013 +0200
@@ -1,9 +1,16 @@
-SOURCES = $(shell find svg -name '*.svg')
+SOURCES = $(shell find images -name '*.svg')
 TARGETS = $(patsubst %.svg,%.png,$(SOURCES))
 OPTIMIZE = 1
 
 all: $(TARGETS)
 
+install: $(TARGETS)
+	set -ex; \
+	for fn in $(TARGETS); do \
+		mkdir -p ../data/"$$(dirname $$fn)"; \
+		cp $$fn ../data/$$fn; \
+	done
+
 clean:
 	rm -f $(TARGETS)