-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
42 lines (29 loc) · 1.03 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
XML_NOTICES = $(wildcard notices/*/*.xml)
TEXT_NOTICES = $(XML_NOTICES:notices/%.xml=build/%.txt)
HTML_NOTICES = $(XML_NOTICES:notices/%.xml=build/%.html)
RAW_NOTICES = $(XML_NOTICES:notices/%.xml=build/%.xml)
ASSETS = assets/main.css assets/libvirt-header-bg.png assets/libvirt-header-logo.png
WEB_ASSETS = $(ASSETS:assets/%=build/%)
all: $(TEXT_NOTICES) $(HTML_NOTICES) $(RAW_NOTICES) build/index.xml build/index.html $(WEB_ASSETS)
build/index.xml: $(XML_NOTICES) scripts/lsn2index
mkdir -p `dirname $@`
./scripts/lsn2index $(XML_NOTICES) > $@
build/index.html: build/index.xml templates/lsn2indexhtml.xsl
./scripts/lsn2indexhtml $< > $@
build/%.txt: notices/%.xml templates/lsn2text.xsl
mkdir -p `dirname $@`
./scripts/lsn2text $< > $@
build/%.html: notices/%.xml templates/lsn2html.xsl
mkdir -p `dirname $@`
./scripts/lsn2html $< > $@
build/%.xml: notices/%.xml
mkdir -p `dirname $@`
cp $< $@
build/%.png: assets/%.png
mkdir -p `dirname $@`
cp $< $@
build/%.css: assets/%.css
mkdir -p `dirname $@`
cp $< $@
clean:
rm -rf build/