mirrored from git://git.rockbox.org/www.git
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (27 loc) · 722 Bytes
/
Makefile
File metadata and controls
36 lines (27 loc) · 722 Bytes
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
ACTION=@echo preprocessing $@; rm -f $@; cpp -P >$@
SRC := $(wildcard *.t)
SOBJS := index.shtml manual.shtml recent.shtml download/daily.shtml
OBJS := $(SRC:%.t=%.html) $(SOBJS) head.tmpl
.SUFFIXES: .t .html
%.html : %.t head.t foot.t
$(ACTION) $<
@sed -i '/^$$/d' $@
%.shtml : %.t head.t foot.t
$(ACTION) $<
@sed -i '/^$$/d' $@
all: $(OBJS)
@(cd irc && $(MAKE))
@(cd mail && $(MAKE))
@(cd devcon && $(MAKE))
@(cd doom && $(MAKE))
head.tmpl: head.t foot.t
$(ACTION) -DTWIKI $<
sed -i '/^$$/d' $@
indextop.html: indextop.t head.t foot.t
clean:
rm $(OBJS)
@(cd irc && $(MAKE) clean)
@(cd mail && $(MAKE) clean)
@(cd devcon && $(MAKE) clean)
@(cd digest && $(MAKE) clean)
@(cd doom && $(MAKE) clean)