2007-04-04 14:06:37 +02:00
# eingebaute Variablen und Regeln werden nicht gebraucht
MAKEFLAGS += -rR
2005-12-18 21:20:23 +01:00
### Programme ###
# XSLT-Prozessor:
PROCESSOR = xsltproc
2007-04-04 14:06:37 +02:00
PFLAGS = --novalid --catalogs --stringparam baseurl $( BASEURL)
2006-06-08 14:51:44 +02:00
BASEURL = ""
2016-12-11 17:48:00 +01:00
RM = rm -f
2006-01-02 19:08:34 +01:00
# XML-Validator
VALIDATOR = xmllint
2009-08-06 17:34:02 +02:00
VFLAGS = --noout --nonet
2006-07-28 03:43:46 +02:00
# VALIDATOR-Flags für Eingabe-XML (meist c3d2web)
2009-08-06 17:34:02 +02:00
VFLAGS_IN = $( VFLAGS) --schema xsd/c3d2web.xsd
2006-07-28 03:43:46 +02:00
# VALIDATOR-Flags für Ausgabe-XML (xhtml, rss, atom, ...)
2009-08-06 17:34:02 +02:00
VFLAGS_OUT = $( VFLAGS)
2006-05-31 19:45:49 +02:00
SGML_CATALOG_FILES = $( XML_CATALOG)
export SGML_CATALOG_FILES
2005-12-18 21:20:23 +01:00
# Downloadmanager (Alternativ: curl, fetch):
2008-01-13 03:01:29 +01:00
WGET = wget
2006-01-02 19:08:34 +01:00
# rsync
RSYNC = rsync
2016-09-10 16:38:00 +02:00
# -l, --links copy symlinks as symlinks
RSYNC_FLAGS = --links --verbose --recursive --delete --delete-after --delete-excluded --checksum --chmod= ugo = rX
2005-12-18 21:20:23 +01:00
# Editor
EDITOR ?= vim
# Browser
BROWSER ?= links
2014-10-18 00:22:47 +02:00
# Mail-Programm: ToDo = nullmailer für make umsetzen und liste für Empfänger aus c3d2-web/xsl/errmailto.xsl entnehmen
2005-12-18 21:20:23 +01:00
2006-05-31 19:59:01 +02:00
# Verzeichnis, in das exportiert werden soll
DESTDIR ?= www-export
2005-12-18 21:20:23 +01:00
### Ressourcen ###
# XSLT-Stylesheets:
2010-11-09 23:24:21 +01:00
STYLE = xsl/xhtml5.xsl
DS_STYLE = xsl/datenspuren/xhtml5.xsl
2017-02-18 23:19:13 +01:00
DS_YEAR = 2017
2006-05-31 19:45:15 +02:00
# Document-Type-Definition:
DTD := dtd/c3d2web.dtd
2006-05-31 19:45:49 +02:00
# XML-Katalog (Pfad zu den DTDs) - wird benötigt vom Validator
XML_CATALOG := dtd/catalog.xml
2005-12-18 21:20:23 +01:00
# Navigationsleiste:
NAVIGATION = content/navigation.xml
2006-05-31 19:45:15 +02:00
# Chaosupdates:
2014-12-17 23:00:18 +01:00
#WWW_CCC_DE_UPDATES=chaosupdates.xml
2006-11-10 02:16:50 +01:00
# Calendar summary::
CALENDAR_SUMMARY = calendar-summary.xml
2010-10-14 15:27:09 +02:00
# Datenspuren Fahrplan
2013-08-26 01:15:54 +02:00
DS_SCHEDULE = $( patsubst content/static/datenspuren/$( DS_YEAR) /fahrplan/schedule/%.html, build/datenspuren/$( DS_YEAR) /schedule-%.xml, $( wildcard content/static/datenspuren/$( DS_YEAR) /fahrplan/schedule/?.html) )
2006-01-06 18:59:33 +01:00
2006-05-31 19:45:15 +02:00
### Ziele ###
2008-01-13 02:41:18 +01:00
# Mindestens 1x täglich neubauen wegen Chaosupdates & Kalender
DATESTAMP = build/.stamp-$( shell date +%Y-%m-%d)
2006-05-31 19:45:15 +02:00
# Dateinamen der zu erzeugenden html-Dateien:
2015-09-19 01:39:21 +02:00
CONTENT = $( PAGES) $( NEWS_PAGES) $( DS_PAGES) $( DS_FEEDS) $( NEWSFILES) build/calendar.html build/datenspuren/$( DS_YEAR) /pois.json
2005-12-18 21:20:23 +01:00
2006-05-31 19:45:15 +02:00
# 'normale' Seiten:
PAGES := $( patsubst content/pages/%.xml, build/%.html, $( wildcard content/pages/*.xml) )
# Seiten zu einzelnen News-Items:
NEWS_PAGES := $( patsubst content/news/%.xml, build/news/%.html, $( wildcard content/news/*.xml) )
# News-Index und Feeds:
2009-10-25 13:45:19 +01:00
NEWSFILES := build/news.html build/news-rss.xml build/news-atom.xml \
2011-01-09 23:58:22 +01:00
build/podcast.xml build/pentaradio.xml build/pentacast.xml build/pentamusic.xml build/pentamedia.xml \
2012-03-06 19:50:34 +01:00
build/news-archiv-rss.xml build/news-archiv-atom.xml \
build/podcast-archiv.xml build/pentaradio-archiv.xml build/pentacast-archiv.xml \
build/pentamusic-archiv.xml build/pentamedia-archiv.xml \
2017-01-12 00:51:07 +01:00
build/ical.ics build/hq.ics build/xcal.xml build/reminders \
2012-10-15 23:18:24 +02:00
build/datenspuren/$( DS_YEAR) /news-rss.xml build/datenspuren/$( DS_YEAR) /news-atom.xml \
2013-10-29 02:42:40 +01:00
build/pentacast-ogg.xml build/pentacast-ogg-archiv.xml \
build/portal.html
2008-06-29 16:48:34 +02:00
PLAYLISTS := $( patsubst content/news/pentaradio%.xml, build/news/pentaradio%.xspf, $( wildcard content/news/pentaradio*.xml) ) \
$( patsubst content/news/pentaradio%.xml, build/news/pentaradio%.pls, $( wildcard content/news/pentaradio*.xml) ) \
$( patsubst content/news/pentaradio%.xml, build/news/pentaradio%.m3u, $( wildcard content/news/pentaradio*.xml) )
2006-05-31 19:45:15 +02:00
# Datenspuren-Seiten:
2011-10-06 21:39:48 +02:00
DS_PAGES := $( patsubst content/datenspuren/%.xml, build/datenspuren/$( DS_YEAR) /%.html, $( wildcard content/datenspuren/*.xml) )
2012-11-24 00:30:15 +01:00
DS_FEEDS := \
2013-11-06 00:06:29 +01:00
build/datenspuren/2009/mitschnitte-rss.xml \
2012-11-24 00:30:15 +01:00
build/datenspuren/2010/mitschnitte-rss.xml \
build/datenspuren/2011/mitschnitte-rss.xml \
2013-09-14 00:12:42 +02:00
build/datenspuren/2012/mitschnitte-rss.xml \
2014-10-07 01:39:08 +02:00
build/datenspuren/2013/mitschnitte-rss.xml \
build/datenspuren/2014/mitschnitte-rss.xml
2006-01-02 19:08:34 +01:00
2006-05-31 19:45:15 +02:00
# Quellen
2006-05-31 19:45:49 +02:00
NEWSITEMS := $( wildcard content/news/*.xml)
2014-12-17 23:00:18 +01:00
#CLEAN=$(CONTENT) $(NEWSFILES) $(WWW_CCC_DE_UPDATES) $(CALENDAR_SUMMARY) $(DS_PAGES) $(DS_FEEDS)
CLEAN = $( CONTENT) $( NEWSFILES) $( CALENDAR_SUMMARY) $( DS_PAGES) $( DS_FEEDS)
2006-01-02 19:08:34 +01:00
2013-10-30 00:13:58 +01:00
NOINPUTVALID := false
2010-11-09 21:16:13 +01:00
NOVALID := false
2006-06-08 14:51:42 +02:00
2014-02-09 00:02:25 +01:00
ALL_XSLS = $( wildcard xsl/*.xsl)
2006-07-21 01:10:57 +02:00
d e f i n e x m l _ p r o c e s s
2006-06-08 14:51:42 +02:00
$( PROCESSOR) $( PFLAGS) -o $@ $( STYLE) $<
2014-02-09 00:02:25 +01:00
@$( NOVALID) || echo $( VALIDATOR) $( VFLAGS_OUT) $@ || \
{ touch -m -t 197001010000 Makefile $@ ; exit 1 ; }
@$( NOVALID) || $( VALIDATOR) $( VFLAGS_OUT) $@ || \
2006-07-21 01:10:57 +02:00
{ touch -m -t 197001010000 Makefile $@ ; exit 1 ; }
2006-06-08 14:51:42 +02:00
e n d e f
2006-05-31 19:45:15 +02:00
### Defaults ###
2006-01-11 19:12:08 +01:00
2008-03-29 12:48:37 +01:00
.PHONY : www
2006-05-31 19:45:49 +02:00
www : $( XML_CATALOG ) $( CONTENT )
2008-01-13 02:41:18 +01:00
$( RSYNC) $( RSYNC_FLAGS) --exclude= ".stamp-*" content/static/ content/old-site/ build/ $@
2010-11-09 23:14:45 +01:00
@echo
@echo
@echo 'Great!'
@echo
2010-11-09 23:24:21 +01:00
@echo 'You may now run `make -j3 xhtml5-validate` to make sure everything fits.'
2010-11-09 23:14:45 +01:00
@echo
2005-12-18 21:20:23 +01:00
2008-03-29 12:48:37 +01:00
.PHONY : export
2006-05-31 19:59:01 +02:00
export : www
2013-03-31 01:09:21 +01:00
$( RSYNC) $( RSYNC_FLAGS) --exclude= ".git/" www/ $( DESTDIR) /
2006-05-31 19:59:01 +02:00
2008-01-13 02:41:18 +01:00
$(DATESTAMP) :
2012-06-27 19:30:45 +02:00
mkdir -p build
2015-09-28 00:16:07 +02:00
mkdir -p build/datenspuren/$( DS_YEAR) /
2013-11-19 21:18:27 +01:00
$( RM) $( wildcard build/.stamp-*)
2008-01-13 02:41:18 +01:00
touch $@
2005-12-18 21:20:23 +01:00
### Regeln für den XSLT-Prozess ###
2006-01-11 19:12:08 +01:00
2010-11-09 21:16:13 +01:00
build/%.html : NOVALID :=true
2014-12-17 23:00:18 +01:00
#build/news.html: $(WWW_CCC_DE_UPDATES) $(CALENDAR_SUMMARY) $(DATESTAMP)
build/news.html : $( CALENDAR_SUMMARY ) $( DATESTAMP )
2012-03-06 19:34:55 +01:00
2013-01-08 15:42:49 +01:00
## Feedgrößen begrenzen
2012-03-06 19:34:55 +01:00
build/%.xml : MAX_ITEMS =23
2012-03-06 19:50:34 +01:00
build/%-archiv.xml build/news-archiv-%.xml : MAX_ITEMS =9999999
2013-01-08 15:42:49 +01:00
## Erscheinen regelmäßig, aber guck durch mehr als 23 Items zurück
build/pentaradio.xml build/pentamusic.xml : MAX_ITEMS =100
## Erscheint leider nicht so oft
build/pentacast.xml build/pentacast-ogg.xml : MAX_ITEMS =200
build/pentamedia.xml : MAX_ITEMS =50
2012-03-06 19:34:55 +01:00
build/%.xml : PFLAGS +=--param maxitems $( MAX_ITEMS )
2012-03-06 19:50:34 +01:00
build/news-rss.xml build/news-archiv-rss.xml : STYLE =xsl /rss .xsl
build/news-rss.xml build/news-archiv-rss.xml : PFLAGS +=--stringparam prefix ""
build/news-rss.xml build/news-archiv-rss.xml : VFLAGS_OUT =$( VFLAGS ) --schema xsd /rss 20.xsd
2013-04-01 19:53:22 +02:00
build/news-rss.xml : PFLAGS +=--stringparam archivefeed news -archiv -rss .xml
2012-03-06 19:50:34 +01:00
build/news-atom.xml build/news-archiv-atom.xml : STYLE =xsl /atom .xsl
build/news-atom.xml build/news-archiv-atom.xml : PFLAGS +=--stringparam prefix ""
build/news-atom.xml build/news-archiv-atom.xml : VFLAGS_OUT =$( VFLAGS ) --relaxng xsd /atom .rng
2013-04-01 19:53:22 +02:00
build/news-atom.xml : PFLAGS +=--stringparam archivefeed news -archiv -atom .xml
2012-03-06 19:50:34 +01:00
build/podcast.xml build/podcast-archiv.xml : STYLE =xsl /podcast .xsl
build/podcast.xml build/podcast-archiv.xml : VFLAGS_OUT =$( VFLAGS ) --schema xsd /rss 20.xsd
2012-11-29 22:35:29 +01:00
build/podcast.xml build/podcast-archiv.xml : PFLAGS +=--stringparam format audio /mpeg , video /mp 4
2012-03-06 19:50:34 +01:00
build/podcast.xml build/podcast-archiv.xml : xsl /podcast .xsl # Does not work with $(STYLE) - why?
2013-04-01 19:53:22 +02:00
build/podcast.xml : PFLAGS +=--stringparam archivefeed podcast -archiv .xml
2012-03-06 19:50:34 +01:00
build/pentaradio.xml build/pentaradio-archiv.xml : STYLE =xsl /podcast .xsl
build/pentaradio.xml build/pentaradio-archiv.xml : VFLAGS_OUT =$( VFLAGS ) --schema xsd /rss 20.xsd
2012-11-29 22:35:29 +01:00
build/pentaradio.xml build/pentaradio-archiv.xml : PFLAGS +=--stringparam selection pentaradio --stringparam format audio /mpeg , video /mp 4
2012-03-06 19:50:34 +01:00
build/pentaradio.xml build/pentaradio-archiv.xml : xsl /podcast .xsl # Does not work with $(STYLE) - why?
2013-04-01 19:53:22 +02:00
build/pentaradio.xml : PFLAGS +=--stringparam archivefeed pentaradio -archiv .xml
2012-03-06 19:50:34 +01:00
build/pentacast.xml build/pentacast-archiv.xml : STYLE =xsl /podcast .xsl
build/pentacast.xml build/pentacast-archiv.xml : VFLAGS_OUT =$( VFLAGS ) --schema xsd /rss 20.xsd
2012-11-29 22:35:29 +01:00
build/pentacast.xml build/pentacast-archiv.xml : PFLAGS +=--stringparam selection pentacast --stringparam format audio /mpeg , video /mp 4
2012-03-06 19:50:34 +01:00
build/pentacast.xml build/pentacast-archiv.xml : xsl /podcast .xsl # Does not work with $(STYLE) - why?
2013-04-01 19:53:22 +02:00
build/pentacast.xml : PFLAGS +=--stringparam archivefeed pentacast -archiv .xml
2012-10-15 23:18:24 +02:00
build/pentacast-ogg.xml build/pentacast-ogg-archiv.xml : STYLE =xsl /podcast .xsl
build/pentacast-ogg.xml build/pentacast-ogg-archiv.xml : VFLAGS_OUT =$( VFLAGS ) --schema xsd /rss 20.xsd
2012-11-29 22:35:29 +01:00
build/pentacast-ogg.xml build/pentacast-ogg-archiv.xml : PFLAGS +=--stringparam selection pentacast --stringparam format audio /ogg , video /ogg , application /ogg , video /webm
2012-10-15 23:18:24 +02:00
build/pentacast-ogg.xml build/pentacast-ogg-archiv.xml : xsl /podcast .xsl # Does not work with $(STYLE) - why?
2013-04-01 19:53:22 +02:00
build/pentacast-ogg.xml : PFLAGS +=--stringparam archivefeed pentacast -ogg -archiv .xml
2012-10-15 23:18:24 +02:00
2012-03-06 19:50:34 +01:00
build/pentamusic.xml build/pentamusic-archiv.xml : STYLE =xsl /podcast .xsl
build/pentamusic.xml build/pentamusic-archiv.xml : VFLAGS_OUT =$( VFLAGS ) --schema xsd /rss 20.xsd
2012-11-29 22:35:29 +01:00
build/pentamusic.xml build/pentamusic-archiv.xml : PFLAGS +=--stringparam selection pentamusic --stringparam format audio /mpeg , video /mp 4
2012-03-06 19:50:34 +01:00
build/pentamusic.xml build/pentamusic-archiv.xml : xsl /podcast .xsl # Does not work with $(STYLE) - why?
2013-04-01 19:53:22 +02:00
build/pentamusic.xml : PFLAGS +=--stringparam archivefeed pentamusic -archiv .xml
2012-03-06 19:50:34 +01:00
build/pentamedia.xml build/pentamedia-archiv.xml : STYLE =xsl /podcast .xsl
build/pentamedia.xml build/pentamedia-archiv.xml : VFLAGS_OUT =$( VFLAGS ) --schema xsd /rss 20.xsd
2012-11-29 22:35:29 +01:00
build/pentamedia.xml build/pentamedia-archiv.xml : PFLAGS +=--stringparam selection pentamedia --stringparam format audio /mpeg , video /mp 4
2012-03-06 19:50:34 +01:00
build/pentamedia.xml build/pentamedia-archiv.xml : xsl /podcast .xsl # Does not work with $(STYLE) - why?
2013-04-01 19:53:22 +02:00
build/pentamedia.xml : PFLAGS +=--stringparam archivefeed pentamedia -archiv .xml
2006-05-31 19:45:49 +02:00
2006-07-27 02:01:48 +02:00
#.INTERMEDIATE: news.xml
2006-06-08 14:51:42 +02:00
news.xml : $( NEWSITEMS )
sh scripts/gen_news.xml.sh $^ > $@
2006-01-11 19:12:08 +01:00
2006-06-08 14:51:42 +02:00
$(NEWSFILES) : news .xml $( NAVIGATION ) $( STYLE )
2006-07-21 01:10:57 +02:00
$( call xml_process)
2006-05-11 21:29:50 +02:00
2006-10-28 20:33:31 +02:00
# Calendar
2006-11-10 02:16:50 +01:00
$(CALENDAR_SUMMARY) : STYLE =xsl /calendar -summary .xsl
2010-11-09 21:16:13 +01:00
$(CALENDAR_SUMMARY) : NOVALID :=true
2009-08-06 17:34:02 +02:00
$(CALENDAR_SUMMARY) : VFLAGS_IN =$( VFLAGS )
2006-11-10 02:16:50 +01:00
$(CALENDAR_SUMMARY) : content /events .xml news .xml
2006-10-28 20:33:31 +02:00
$( call xml_process)
2009-08-06 17:34:02 +02:00
build/calendar.html : VFLAGS_IN =$( VFLAGS )
2014-12-17 23:00:18 +01:00
#build/calendar.html: $(CALENDAR_SUMMARY) $(STYLE) $(NAVIGATION) $(WWW_CCC_DE_UPDATES) $(DATESTAMP) $(ALL_XSLS)
build/calendar.html : $( CALENDAR_SUMMARY ) $( STYLE ) $( NAVIGATION ) $( DATESTAMP ) $( ALL_XSLS )
2006-10-28 20:33:31 +02:00
$( call xml_process)
2007-11-18 14:22:53 +01:00
# XCal
build/xcal.xml : STYLE =xsl /xcal .xsl
2009-08-06 17:34:02 +02:00
build/xcal.xml : VFLAGS_IN =$( VFLAGS )
2007-11-18 14:22:53 +01:00
build/xcal.xml : $( CALENDAR_SUMMARY ) $( STYLE )
$( call xml_process)
# iCal
build/ical.ics : STYLE =xsl /ical .xsl
2010-11-09 21:16:13 +01:00
build/ical.ics : NOVALID :=true
2009-08-06 17:34:02 +02:00
build/ical.ics : VFLAGS_IN =$( VFLAGS )
build/ical.ics : VFLAGS_OUT =$( VFLAGS )
2007-11-18 14:22:53 +01:00
build/ical.ics : $( CALENDAR_SUMMARY ) $( STYLE )
$( call xml_process)
2017-01-12 00:51:07 +01:00
# iCal with events at our hackerspace, for http://itedd.de/ + https://spaceapi.ccc.de/
build/hq.ics : STYLE =xsl /ical .xsl
build/hq.ics : PFLAGS +=--stringparam location -filter HQ
build/hq.ics : NOVALID :=true
build/hq.ics : VFLAGS_IN =$( VFLAGS )
build/hq.ics : VFLAGS_OUT =$( VFLAGS )
build/hq.ics : $( CALENDAR_SUMMARY ) $( STYLE )
2014-09-08 01:50:51 +02:00
$( call xml_process)
2008-03-10 21:36:49 +01:00
# Remind
build/reminders : STYLE =xsl /remind .xsl
2010-11-09 21:16:13 +01:00
build/reminders : NOVALID :=true
2009-08-06 17:34:02 +02:00
build/reminders : VFLAGS_IN =$( VFLAGS )
build/reminders : VFLAGS_OUT =$( VFLAGS )
2008-03-10 21:36:49 +01:00
build/reminders : $( CALENDAR_SUMMARY ) $( STYLE )
$( call xml_process)
2008-06-29 16:48:34 +02:00
# Playlists
2009-08-06 17:34:02 +02:00
build/%.xspf : VFLAGS_OUT =$( VFLAGS ) --relaxng xsd /xspf -1_ 0.5.rng
2010-11-09 21:16:13 +01:00
build/%.m3u : NOVALID :=true
build/%.pls : NOVALID :=true
2008-06-29 16:48:34 +02:00
2013-10-29 02:42:40 +01:00
# Portal
portal :
mkdir $@
2013-11-13 23:32:49 +01:00
portal/Makefile : STYLE =xsl /portal 2fetch .xsl
portal/Makefile : NOINPUTVALID :=true
portal/Makefile : NOVALID :=true
portal/Makefile : content /portal -config .xml $( STYLE )
2013-10-30 00:13:58 +01:00
$( call xml_process)
2013-10-29 02:42:40 +01:00
portal/items.xml : STYLE =xsl /portal 2items .xsl
2013-10-30 00:13:58 +01:00
portal/items.xml : NOINPUTVALID :=true
2013-10-29 02:42:40 +01:00
portal/items.xml : NOVALID :=true
2013-11-13 23:32:49 +01:00
portal/items.xml : content /portal -config .xml $( STYLE ) portal /Makefile news .xml
$( MAKE) -C portal fetch
2013-10-30 00:13:58 +01:00
$( call xml_process)
portal/items-sorted.xml : STYLE =xsl /portal -sort .xsl
portal/items-sorted.xml : portal /items .xml $( STYLE )
$( call xml_process)
build/portal.html : NOINPUTVALID :=true
2013-11-12 00:16:21 +01:00
build/portal.html : portal /items -sorted .xml $( STYLE ) $( CALENDAR_SUMMARY )
2013-10-30 00:13:58 +01:00
$( call xml_process)
2013-10-29 02:42:40 +01:00
2006-07-25 23:24:59 +02:00
# Pages:
2013-11-12 00:16:21 +01:00
build/%.html : content /pages /%.xml $( STYLE ) $( NAVIGATION ) $( DATESTAMP ) news .xml
2006-07-21 01:10:57 +02:00
$( call xml_process)
2006-05-31 19:45:15 +02:00
2006-07-25 23:24:59 +02:00
# News:
2006-06-08 14:51:44 +02:00
build/news/%.html : BASEURL ="../"
2013-11-12 00:16:21 +01:00
build/news/%.html : content /news /%.xml $( STYLE ) $( NAVIGATION ) $( DATESTAMP )
2006-07-21 01:10:57 +02:00
$( call xml_process)
2006-06-08 14:51:42 +02:00
2013-08-26 01:15:54 +02:00
# Datenspuren
2016-10-22 23:38:46 +02:00
DS_FEEDS = \
datenspuren-2015-mp4.xml datenspuren-2015-webm.xml datenspuren-2015-opus.xml datenspuren-2015-mp3.xml \
datenspuren-2016-mp4.xml datenspuren-2016-webm.xml datenspuren-2016-opus.xml datenspuren-2016-mp3.xml
2016-03-02 00:24:38 +01:00
datenspuren-2015-mp4.xml :
$( WGET) -O $@ https://media.ccc.de/podcast/conferences%2Fdatenspuren%2F2015/mp4
datenspuren-2015-webm.xml :
$( WGET) -O $@ https://media.ccc.de/podcast/conferences%2Fdatenspuren%2F2015/webm
datenspuren-2015-opus.xml :
$( WGET) -O $@ https://media.ccc.de/podcast/conferences%2Fdatenspuren%2F2015/opus
datenspuren-2015-mp3.xml :
$( WGET) -O $@ https://media.ccc.de/podcast/conferences%2Fdatenspuren%2F2015/mp3
2015-10-25 11:31:16 +01:00
2016-10-22 23:38:46 +02:00
datenspuren-2016-mp4.xml :
$( WGET) -O $@ https://media.ccc.de/c/ds2016/podcast/mp4.xml
datenspuren-2016-webm.xml :
$( WGET) -O $@ https://media.ccc.de/c/ds2016/podcast/webm.xml
datenspuren-2016-opus.xml :
$( WGET) -O $@ https://media.ccc.de/c/ds2016/podcast/opus.xml
datenspuren-2016-mp3.xml :
$( WGET) -O $@ https://media.ccc.de/c/ds2016/podcast/mp3.xml
2015-09-28 00:16:07 +02:00
build/datenspuren/$(DS_YEAR)/schedule-%.raw.xml : content /static /datenspuren /$( DS_YEAR ) /fahrplan /schedule /%.html scripts /hyphenate .sed $( DATESTAMP )
2016-12-11 18:18:28 +01:00
sed -f scripts/hyphenate.sed < $< > $@
2013-08-26 01:15:54 +02:00
build/datenspuren/$(DS_YEAR)/schedule-%.xml : VFLAGS_IN =$( VFLAGS ) --html
build/datenspuren/$(DS_YEAR)/schedule-%.xml : PFLAGS +=--html
build/datenspuren/$(DS_YEAR)/schedule-%.xml : STYLE =xsl /datenspuren /frab 2xml .xsl
2015-09-27 23:49:48 +02:00
build/datenspuren/$(DS_YEAR)/schedule-%.xml : build /datenspuren /$( DS_YEAR ) /schedule -%.raw .xml $( STYLE )
2013-08-26 01:15:54 +02:00
$( call xml_process)
2011-10-06 21:39:48 +02:00
build/datenspuren/$(DS_YEAR)/%html : STYLE =$( DS_STYLE )
2015-10-25 11:31:16 +01:00
build/datenspuren/$(DS_YEAR)/%.html : content /datenspuren /%.xml $( DS_STYLE ) news .xml $( DS_SCHEDULE ) $( DS_FEEDS )
2006-07-21 01:10:57 +02:00
$( call xml_process)
2006-01-06 18:59:33 +01:00
2011-10-06 21:39:48 +02:00
build/datenspuren/$(DS_YEAR)/news-rss.xml : STYLE =xsl /rss .xsl
build/datenspuren/$(DS_YEAR)/news-rss.xml : NOVALID :=true
2013-04-18 01:10:26 +02:00
build/datenspuren/$(DS_YEAR)/news-rss.xml : PFLAGS +=--stringparam prefix ds 13-
2011-10-06 21:39:48 +02:00
build/datenspuren/$(DS_YEAR)/news-rss.xml : VFLAGS_OUT =$( VFLAGS ) --schema xsd /rss 20.xsd
build/datenspuren/$(DS_YEAR)/news-atom.xml : STYLE =xsl /atom .xsl
build/datenspuren/$(DS_YEAR)/news-atom.xml : NOVALID :=true
2013-04-18 01:10:26 +02:00
build/datenspuren/$(DS_YEAR)/news-atom.xml : PFLAGS +=--stringparam prefix ds 13-
2011-10-06 21:39:48 +02:00
build/datenspuren/$(DS_YEAR)/news-atom.xml : VFLAGS_OUT =$( VFLAGS ) --relaxng xsd /atom .rng
2005-12-18 21:20:23 +01:00
2012-11-05 00:22:54 +01:00
build/datenspuren/%/mitschnitte-rss.xml : STYLE =xsl /newsfile -to -podcast .xsl
build/datenspuren/%/mitschnitte-rss.xml : VFLAGS_OUT =$( VFLAGS ) --schema xsd /rss 20.xsd
2013-11-06 00:06:29 +01:00
build/datenspuren/2009/mitschnitte-rss.xml : content /news /ds 09-videomitschnitte .xml $( STYLE )
$( call xml_process)
2012-11-05 00:22:54 +01:00
build/datenspuren/2010/mitschnitte-rss.xml : content /news /ds 10-videomitschnitte -komplett .xml $( STYLE )
$( call xml_process)
build/datenspuren/2011/mitschnitte-rss.xml : content /news /ds 11-mitschnitte -online .xml $( STYLE )
$( call xml_process)
2012-11-24 00:30:15 +01:00
build/datenspuren/2012/mitschnitte-rss.xml : content /news /ds 12-videomitschnitte -komplett .xml $( STYLE )
$( call xml_process)
2013-10-08 02:14:50 +02:00
build/datenspuren/2013/mitschnitte-rss.xml : content /news /ds 13-videomitschnitte -komplett .xml $( STYLE )
2013-09-14 00:12:42 +02:00
$( call xml_process)
2014-10-07 01:39:08 +02:00
build/datenspuren/2014/mitschnitte-rss.xml : content /news /ds 14-mitschnitte -online .xml $( STYLE )
$( call xml_process)
2012-11-05 00:22:54 +01:00
2015-09-19 01:39:21 +02:00
build/datenspuren/$(DS_YEAR)/pois.json :
2016-07-27 01:36:06 +02:00
wget -O $@ --post-data= " data=[out:json];( $( foreach a, 'amenity' = 'restaurant' 'amenity' = 'fast_food' 'amenity' = 'cafe' 'amenity' = 'ice_cream' 'amenity' = 'bakery' 'shop' = 'convenience' 'shop' = 'supermarket' 'shop' = 'tobacco' 'amenity' = 'pub' 'amenity' = 'biergarten' 'amenity' = 'drinking_water' , $( foreach t, node way relation, $t ( 51.01,13.76,51.07,13.82) [ ${ a } ] ; ) ));out center qt; " http://overpass-api.de/api/interpreter
2015-09-19 01:39:21 +02:00
2010-11-09 23:24:21 +01:00
xhtml5-validate : $( patsubst build /%.html , build /%.html .xhtml 5-validate , $ ( CONTENT ) )
build/%.html.xhtml5-validate : build /%.html
2010-11-09 22:15:46 +01:00
./scripts/validate_xhtml5.sh $<
2005-12-18 21:20:23 +01:00
### Die neuesten Chaosupdates holen ###
2014-12-17 23:00:18 +01:00
#$(WWW_CCC_DE_UPDATES).orig: $(DATESTAMP)
# $(RM) $@
# $(WGET) -O $@ -4 http://www.ccc.de/de/rss/updates.rdf
2009-11-13 23:44:05 +01:00
2014-12-17 23:00:18 +01:00
#$(WWW_CCC_DE_UPDATES): $(WWW_CCC_DE_UPDATES).orig
# $(VALIDATOR) --recover $< > $@
2005-12-18 21:20:23 +01:00
### Mr. Propper ###
2006-05-31 19:45:49 +02:00
.PHONY : clean
2005-12-18 21:20:23 +01:00
clean :
2013-11-19 21:18:27 +01:00
$( RM) $( CLEAN) news.xml
$( RM) -r portal