summaryrefslogtreecommitdiffstats
path: root/www/digest/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/digest/Makefile')
-rw-r--r--www/digest/Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/www/digest/Makefile b/www/digest/Makefile
new file mode 100644
index 0000000000..4e7b3ea696
--- /dev/null
+++ b/www/digest/Makefile
@@ -0,0 +1,26 @@
+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
+
+%.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 < $< >$@
+
+
+