Commit 63593c23 authored by François Revol's avatar François Revol
Browse files

WIP: add a cleaner version of the TeaHouse template w/ Makefile

We generate the QR code from the proper URL, and it's linked to from the
SVG.

Note Inkscape still can't link to external SVG so we must generate it as
PNG...
parent 14f8e1fb
This source diff could not be displayed because it is too large. You can view the blob instead.
# base name
TARGET_BASE := 35C3_ad_TeaHouse
# background color
BGCOL := 3b68b0
# TeaHouse Assembly URL
TH_URL := https://events.ccc.de/congress/2017/wiki/index.php/Assembly:TeaHouse
#XXX: inkscape cannot link to external SVG, nor move objects by command line :-(
#QRIMG := qr_teahouse.svg
QRIMG := qr_teahouse.png
all: $(TARGET_BASE).png $(TARGET_BASE).jpg
#XXX: inkscape cannot link to external SVG, nor move objects by command line :-(
# qrencode --foreground $(BGCOL) --background ffffff00 -t SVG -o $@ "$(TH_URL)"
# Makefile dependency forces regeneration if URL changes
$(QRIMG): Makefile
qrencode --foreground $(BGCOL) --background ffffff00 -t PNG -s 10 -o $@ "$(TH_URL)"
$(TARGET_BASE).png: $(TARGET_BASE).svg $(QRIMG)
inkscape $< --export-png $@
$(TARGET_BASE).jpg: $(TARGET_BASE).png
convert $< $@
clean:
rm -f $(TARGET_BASE).png $(TARGET_BASE).jpg $(QRIMG)
../../34C3/teahouse/Small_DSCF2172.JPG
\ No newline at end of file
......@@ -33,4 +33,7 @@ Infobeamer proposals
* [La Quadrature's TeaHouse](34C3/teahouse).
* [Framasky's WemaWema](34C3/wema) meme generator.
## 35C3 (WIP)
* [La Quadrature's TeaHouse](35C3/teahouse).
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