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:
parent
c672eeef4e
commit
9a2c9476eb
12
Makefile
12
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue