summaryrefslogtreecommitdiff
path: root/www/Makefile
blob: 6bda6917ee5d6ef2c8befc108443428e61fe843f (plain)
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
ACTION=@echo preprocessing $@; rm -f $@; $(HOME)/bin/fcpp -WWW -Uunix -H -C -V -LL >$@

SRC := $(wildcard *.t)
SOBJS := daily.shtml main.shtml index.shtml status.shtml \
	bugs.shtml requests.shtml patches.shtml cvs.shtml

OBJS := $(SRC:%.t=%.html) $(SOBJS)

.SUFFIXES: .t .html

%.html : %.t
	$(ACTION) $<

%.shtml : %.t
	$(ACTION) $<

all: $(OBJS) head.tmpl
	@(cd schematics; $(MAKE))
	@(cd docs; $(MAKE))
	@(cd mods; $(MAKE))
	@(cd internals; $(MAKE))
	@(cd irc; $(MAKE))
	@(cd devcon; $(MAKE))
	@(cd sh-win; $(MAKE))
	@(cd download; $(MAKE))
	@(cd manual; $(MAKE))
	@(cd manual-1.2; $(MAKE))
	@(cd fonts; $(MAKE))
	@(cd lang; $(MAKE))
	@(cd tshirt-contest; $(MAKE))
	@(cd screenshots; $(MAKE))
	@(cd digest; $(MAKE))
	@(cd playerhistory; $(MAKE))
	@(cd devcon2006; $(MAKE))
	@(cd doom; $(MAKE))

head.tmpl: head.t
	$(ACTION) -DTWIKI $<

main.html: main.t activity.html

main.shtml: main.t activity.html

index.shtml: main.shtml
	ln -s main.shtml index.shtml

daily.shtml: daily.t

cvs.shtml: daily.t

since25.html:
	ln -s /home/dast/daniel_html/rockbox/since25.html since25.html

clean:
	find . -name "*html" | xargs rm