rockbox/www/docs/Makefile
Daniel Stenberg 5d0850a371 remade the upcoming battery faq to use the generic faq format
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1811 a1c6a512-1295-4272-9138-f99709370657
2002-08-19 18:00:37 +00:00

22 lines
441 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
all: $(OBJS)
faq.html: faq.t faq.raw $(TXT2PLAIN)
$(ACTION) $<
faq.raw: FAQ $(TXT2PLAIN)
$(TXT2PLAIN) < $< > $@
battery.raw: BATTERY $(TXT2PLAIN)
$(TXT2PLAIN) < $< > $@
battery.html: battery.t battery.raw $(TXT2PLAIN)
$(ACTION) $<
%.html : %.t
$(ACTION) $<