-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
72 lines (57 loc) · 1.98 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
OUTPUTFILES = \
build/default.css \
build/desert.css \
build/xmas.css \
build/halloween.css \
build/snow.css \
build/index.html \
build/documentation.html \
build/news.html \
build/news_old.html \
build/faq.html \
build/contact.html \
build/download.html \
build/screenshots.html \
build/screenshots-0.0.html \
build/screenshots-0.1.html \
build/screenshots-0.2.html \
build/screenshots-0.3.html \
build/screenshots-0.4.html \
build/screenshots-0.5.html \
build/screenshots-0.6.html \
build/screenshots-0.7.html \
build/videos.html \
build/levelbuilding-tutorial.html \
build/development.html \
build/manual.html \
build/links.html
all : build $(OUTPUTFILES) images
build:
mkdir -p build/
images :
rsync -rCtluv images/ build/images/
clean :
rm -vf $(OUTPUTFILES)
build/default.css : default.css default.css.sed compatibility.sed
sed -f "compatibility.sed" -f "default.css.sed" $< > $@
build/snow.css : default.css default.css.sed compatibility.sed
sed -f "compatibility.sed" -f "default.css.sed" $< > $@
build/desert.css : default.css desert.css.sed compatibility.sed
sed -f "compatibility.sed" -f "desert.css.sed" $< > $@
build/halloween.css : default.css halloween.css.sed compatibility.sed
sed -f "compatibility.sed" -f "halloween.css.sed" $< > $@
build/xmas.css : default.css xmas.css.sed compatibility.sed
sed -f "compatibility.sed" -f "xmas.css.sed" $< > $@
build/%.html :: %.xml default.xsl Makefile menu.xml
@echo "----------------------------------------------------------------------------"
FILENAME=$<; \
echo $${FILENAME%%.xml}; \
xsltproc -param filename "'$${FILENAME%%.xml}'" --output $@ default.xsl $<
tidy -modify -wrap 10000 -quiet -ashtml $@
sed -i 's_<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">_<!DOCTYPE html>_g' $@
upload: all
rsync --checksum --exclude "old/" --cvs-exclude -rv build/ \
grumbel@pingus.seul.org:/home/pingus/public_html/
#tidy -asxml -indent -quiet -modify $@
.PHONY: all clean images
# EOF #