370128fc45
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1859 a1c6a512-1295-4272-9138-f99709370657
27 lines
593 B
Makefile
27 lines
593 B
Makefile
ACTION=@echo preprocessing $@; rm -f $@; $(HOME)/bin/fcpp -WWW -I.. -Uunix -H -C -V -P -LL >$@
|
|
|
|
|
|
SRC := $(wildcard *.t)
|
|
OBJS := $(SRC:%.t=%.html)
|
|
TXT2PLAIN = ../txt2plain.pl
|
|
|
|
# This is correct. It does point to ../../docs but we need a different
|
|
# name so that the directories don't collide.
|
|
DOCS = ../docs_
|
|
|
|
all: $(OBJS)
|
|
|
|
faq.html: faq.t faq.raw $(TXT2PLAIN)
|
|
$(ACTION) $<
|
|
|
|
faq.raw: $(DOCS)/FAQ $(TXT2PLAIN)
|
|
$(TXT2PLAIN) < $< > $@
|
|
|
|
battery.raw: $(DOCS)/BATTERY $(TXT2PLAIN)
|
|
$(TXT2PLAIN) < $< > $@
|
|
|
|
battery.html: battery.t battery.raw $(TXT2PLAIN)
|
|
$(ACTION) $<
|
|
|
|
%.html : %.t
|
|
$(ACTION) $<
|