Commit 00f9d060 authored by François Revol's avatar François Revol
Browse files

Add a GAFAM posters template

parent d5e9cc7e
This diff is collapsed.
# base name
TARGET_BASE := 35C3_ad_GAFAM_Posters
# background color
QRCOL := 000000
POSTER_URL := https://ptrace.gafam.info/unofficial/img/color/lqdn-gafam-poster-en-color-5x1-2560x.png
POSTER_IMG := $(notdir $(POSTER_URL))
LOGOS_URL := https://gafam.info/static/img/gafam-pictograms.jpg
LOGOS_IMG := $(notdir $(LOGOS_URL))
QR_URL := https://gafam.info/
#XXX: inkscape cannot link to external SVG, nor move objects by command line :-(
QR_IMG := qr_gafam.png
all: $(TARGET_BASE).png $(TARGET_BASE).jpg
#XXX: inkscape cannot link to external SVG, nor move objects by command line :-(
# Makefile dependency forces regeneration if URL changes
$(QR_IMG): Makefile
qrencode --foreground $(QRCOL) --background ffffff00 -t PNG -s 10 -o $@ "$(QR_URL)"
$(TARGET_BASE).png: $(TARGET_BASE).svg $(QR_IMG) $(POSTER_IMG) $(LOGOS_IMG)
inkscape $< --export-png $@
$(TARGET_BASE).jpg: $(TARGET_BASE).png
convert $< $@
$(POSTER_IMG):
wget -O $@ "$(POSTER_URL)"
$(LOGOS_IMG):
wget -O $@ "$(LOGOS_URL)"
clean:
rm -f $(TARGET_BASE).png $(TARGET_BASE).jpg $(QR_IMG) $(POSTER_IMG) $(LOGOS_IMG)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment