37 lines
1.0 KiB
Makefile
37 lines
1.0 KiB
Makefile
|
|
PROCESSOR=xsltproc
|
|
PFLAGS=--novalid
|
|
|
|
# The root directory of every transformation
|
|
# used in the following makefile
|
|
TRANSFORMATION_ROOT=transformation
|
|
|
|
# TODO: Define a transformation procedure for each transformation
|
|
# within $(TRANSFORMATION_ROOT) and its subdirectories.
|
|
|
|
HTML_OUTPUT=output/html
|
|
PAGE_OUTPUT=output/page
|
|
|
|
#
|
|
# NEWS
|
|
#
|
|
NEWS_OUTPUT=output/news
|
|
|
|
ITEMS_DIR=content/c3d2/items
|
|
|
|
# Points to a script or executable, which takes
|
|
# the directory containing the newsitems in xml-format
|
|
# as parameter and passes a corresponding list in xml-format
|
|
# to STDOUT
|
|
LIST_GENERATOR=scripts/generate-news-list.sh
|
|
|
|
# 1. Generate a list of all news items
|
|
# stored within $(ITEMS_DIR).
|
|
$(NEWS_OUTPUT)/news-list.xml:
|
|
$(LIST_GENERATOR) $(ITEMS_DIR) > $(NEWS_OUTPUT)/news-list.xml
|
|
|
|
# 2. Transform the news.xml-file into a page
|
|
# TODO: Replace PROCESSOR-call with a predefined procedure for news2page-transformation.
|
|
$(PAGE_OUTPUT)/news.xml:
|
|
$(PROCESSOR) $(TRANSFORMATION_ROOT)/news2page/news.xsl content/c3d2/news/overview.xml
|