summaryrefslogtreecommitdiffstats
path: root/www/digest/Makefile
blob: 61b18cd3c4010b265caa7f6507f8a74a18071517 (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
ACTION=@echo preprocessing $@; \
  rm -f $@; \
  fcpp -WWW -I.. -Uunix -H -C -V -LL >$@

SRC := $(wildcard *.t)
OBJS := $(SRC:%.t=%.html)

all: $(OBJS) digest.rss digest.mail

digest.html: digest.t news.t digesthead.t log.t
	$(ACTION) $<

%.html : %.t news.t digesthead.t log.t
	$(ACTION) $<

digest.mail: mail.t log.t mailify.pl
	echo mailifying $@;
	rm -f $@;
	fcpp -WWW -DMAKE_MAIL -Uunix -P -H -C -V -LL >digest.temp $<
	./mailify.pl < digest.temp > digest.mail

digest.rss: digest.t digesthead.t log.raw
	@echo rssing $@;
	@rm -f $@;
	@fcpp -WWW -DMAKE_RSS -Uunix -P -H -C -V -LL >$@ $<

log.raw: log.t rssify.pl digesthead.t
	./rssify.pl < $< >$@