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

Add Giggity 36C3

parent 0f7471f4
This diff is collapsed.
# base name
TARGET_BASE := 36C3_ad_Giggity
# background color
QRCOL := 000000
SCREEN_URL := https://github.com/Wilm0r/giggity/raw/master/play/giggity-tablet.png
SCREEN_IMG := $(notdir $(SCREEN_URL))
FD_BADGE_URL := https://f-droid.org/badge/get-it-on.png
FD_BADGE_IMG := $(notdir $(FD_BADGE_URL))
PS_BADGE_URL := https://play.google.com/intl/en_gb/badges/images/generic/en_badge_web_generic.png
PS_BADGE_IMG := $(notdir $(PS_BADGE_URL))
GH_URL := https://github-media-downloads.s3.amazonaws.com/GitHub-Mark.zip
GH_ZIP := $(notdir $(GH_URL))
GH_IMG := $(GH_ZIP) $(GH_ZIP:.zip=)
QR_URL := https://github.com/Wilm0r/giggity/
#XXX: inkscape cannot link to external SVG, nor move objects by command line :-(
QR_IMG := qr_giggity.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) $(SCREEN_IMG) $(FD_BADGE_IMG) $(PS_BADGE_IMG) $(GH_IMG)
inkscape $< --export-png $@
$(TARGET_BASE).jpg: $(TARGET_BASE).png
convert $< $@
$(SCREEN_IMG):
wget -O $@ "$(SCREEN_URL)"
$(FD_BADGE_IMG):
wget -O $@ "$(FD_BADGE_URL)"
$(PS_BADGE_IMG):
wget -O $@ "$(PS_BADGE_URL)"
$(GH_IMG):
wget -O $@ "$(GH_URL)"
unzip $(GH_ZIP)
clean:
rm -Rf $(TARGET_BASE).png $(TARGET_BASE).jpg $(QR_IMG) $(SCREEN_IMG) $(FD_BADGE_IMG) $(PS_BADGE_IMG) $(GH_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