Browse Source

makefile and gitignore

Nicolas Lenz 6 months ago
parent
commit
1472c658ad
2 changed files with 18 additions and 0 deletions
  1. 1
    0
      .gitignore
  2. 17
    0
      makefile

+ 1
- 0
.gitignore View File

@@ -0,0 +1 @@
1
+out/

+ 17
- 0
makefile View File

@@ -0,0 +1,17 @@
1
+WIDTH=1000
2
+
3
+ALLSRC=$(wildcard src/*.svg)
4
+ALLPNG=$(patsubst src/%,out/%,$(patsubst %.svg,%.png,$(ALLSRC)))
5
+
6
+all: $(ALLPNG)
7
+
8
+out/%.png: src/%.svg | out
9
+	inkscape -w $(WIDTH) -e $@ $<
10
+
11
+out:
12
+	mkdir -p out
13
+
14
+clean:
15
+	rm -r out
16
+
17
+.PHONY: all clean

Loading…
Cancel
Save