export-Target zurückportiert von toidinamais_coole_scheisse

git-svn-id: svn://svn.c3d2.de/c3d2-web/trunk@90 31f61c52-7bfb-0310-b897-fc00f8a278f0
This commit is contained in:
toidinamai 2006-01-03 13:18:41 +00:00
parent c672eeef4e
commit 9a2c9476eb
1 changed files with 11 additions and 1 deletions

View File

@ -3,11 +3,17 @@
PROCESSOR=xsltproc
# Downloadmanager (Alternativ: curl, fetch):
WGET=wget
# rsync
RSYNC=rsync
RSYNC_FLAGS=--verbose --recursive --delete --delete-after --delete-excluded --checksum
# Editor
EDITOR?=vim
# Browser
BROWSER?=links
# Verzeichnis, in das exportiert werden soll
DESTDIR?=www-export
### Ressourcen ###
# XSLT-Stylesheets:
STYLE=xsl/xhtml.xsl
@ -26,12 +32,15 @@ NEWSITEMS:=$(wildcard content/news/*.xml)
CLEAN:=$(CONTENT) www/news.html www/news-rss.xml chaosupdates.rdf
### Defaults ###
.PHONY: contents clean
.PHONY: export contents clean
.DEFAULT: contents
.PRECIOUS: content/%.xml www/%.html
contents: $(CONTENT)
export: contents
$(RSYNC) $(RSYNC_FLAGS) --exclude=".svn/" www/ $(DESTDIR)/
### Regeln für den XSLT-Prozess ###
www/news.html: $(NEWSITEMS) $(STYLE) $(NAVIGATION)
{ echo '<?xml version="1.0" encoding="UTF-8"?>' ; \
@ -77,3 +86,4 @@ chaosupdates.rdf:
### Mr. Propper ###
clean:
rm -f $(CLEAN)
rm -rf www-export