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

Add 36C3 LQDN template

parent 98587cb3
This diff is collapsed.
......@@ -11,6 +11,14 @@ QR_URL := https://www.laquadrature.net/en/support/
#XXX: inkscape cannot link to external SVG, nor move objects by command line :-(
QR_IMG := qr.png
BG_URL := https://www.laquadrature.net/wp-content/themes/apprenti/img/affiche.jpg
BG_IMG := $(notdir $(BG_URL))
BEE_URL := https://www.laquadrature.net/wp-content/uploads/sites/8/2019/12/abeille.png
BEE_IMG := $(notdir $(BEE_URL))
POSTERS_URL := https://www.laquadrature.net/wp-content/uploads/sites/8/2019/12/affiches-1.png
POSTERS_IMG := $(notdir $(POSTERS_URL))
all: $(TARGET_BASE).png $(TARGET_BASE).jpg
......@@ -20,12 +28,24 @@ $(QR_IMG): Makefile
qrencode --foreground $(QRCOL) --background $(QRBGCOL) -t PNG -s 10 -o $@ "$(QR_URL)"
$(TARGET_BASE).png: $(TARGET_BASE).svg $(QR_IMG)
$(BG_IMG): Makefile
wget -O $@ "$(BG_URL)"
touch $@
$(BEE_IMG): Makefile
wget -O $@ "$(BEE_URL)"
touch $@
$(POSTERS_IMG): Makefile
wget -O $@ "$(POSTERS_URL)"
touch $@
$(TARGET_BASE).png: $(TARGET_BASE).svg $(QR_IMG) $(BG_IMG) $(BEE_IMG) $(POSTERS_IMG)
inkscape $< --export-png $@
$(TARGET_BASE).jpg: $(TARGET_BASE).png
convert $< $@
clean:
rm -f $(TARGET_BASE).png $(TARGET_BASE).jpg $(QR_IMG)
rm -f $(TARGET_BASE).png $(TARGET_BASE).jpg $(QR_IMG) $(BG_IMG) $(BEE_IMG) $(POSTERS_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