summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-12-02 17:40:04 (EST)
committer P. J. McDermott <pjm@nac.net>2012-12-03 16:01:20 (EST)
commit522043bf78571cf0aec786abe63b1db9a6e185d8 (patch)
tree9f4de060dc67c20020b6e35cd9f7e7018d03f9f2 /Makefile
Initial commit.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..4ed0d95
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,20 @@
+# NB: This currently does nothing, as all assets are manually rasterized.
+RESOLUTION = 300
+
+SRCS = brochure-outside.svg brochure-inside.svg
+OBJS = $(SRCS:.svg=.pdf)
+OUT = brochure.pdf
+
+.SUFFIXES:
+.SUFFIXES: .svg .pdf
+
+default: $(OUT)
+
+.svg.pdf:
+ inkscape --export-dpi=$(RESOLUTION) --export-pdf=$@ $<
+
+$(OUT): $(OBJS)
+ gs -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=$@ $(OBJS)
+
+clean:
+ rm -f $(OBJS) $(OUT)