-SRC := $(filter-out $(wildcard feed_*) meta_notes.m4,$(wildcard *.m4))
+SRC := $(filter-out $(wildcard meta_*),$(wildcard *.m4))
OUTPUTS := $(patsubst %.m4,out/%.html,$(SRC))
STATIC := $(patsubst static/%,out/%,$(wildcard static/*))
all: $(OUTPUTS) out/notes.atom out/notes.rss out/style.css $(STATIC)
out/%.html: %.m4 header.html footer.html ; m4 $< > $@
-out/notes.atom: feed_atom.m4 ; m4 $< > $@
-out/notes.rss: feed_rss.m4 ; m4 $< > $@
+out/notes.atom: meta_feed_atom.m4 ; m4 $< > $@
+out/notes.rss: meta_feed_rss.m4 ; m4 $< > $@
$(STATIC): ; ln -s $(PWD)/static/$(notdir $@) $@
deploy:
+++ /dev/null
-include(meta_notes.m4)dnl
-<?xml version="1.0" encoding="UTF-8"?>
-<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
-<title>Amin Bandali's Personal Site</title>
-<id>tag:bandali.eu.org,atom,notes/</id>
-<link href="https://bandali.eu.org/notes.atom" rel="self" type="application/atom+xml"/>
-<link href="https://bandali.eu.org" rel="alternate" type="text/html"/>
-<updated>syscmd(date -Iseconds -u | tr -d \\n)</updated>
-define(__feed_atom)dnl
-define(`fordown',`ifelse($#,0,``$0'',`ifelse(eval($2>=$3),1,
- `pushdef(`$1',$2)$4`'popdef(`$1')$0(`$1',decr($2),$3,`$4')')')')
-fordown(`__i',__latest,eval(__latest-10),`
- syscmd(sed "s/\&/\&/g;s/>/\>/g;s/</\</g" _get(`notes', __i).m4 | m4 -D__feed_atom)')
-</feed>
+++ /dev/null
-include(meta_notes.m4)dnl
-<?xml version="1.0" encoding="UTF-8" ?>
-<rss version="2.0">
-<channel>
-<title>Amin Bandali's Personal Site</title>
-<description>Notes and blog posts by Amin Bandali</description>
-<link>https://bandali.eu.org</link>
-<lastBuildDate>syscmd(date -uR | tr -d \\n)</lastBuildDate>
-<pubDate>syscmd(date -uR | tr -d \\n)</pubDate>
-<ttl>1800</ttl>
-define(__feed_rss)dnl
-define(`fordown',`ifelse($#,0,``$0'',`ifelse(eval($2>=$3),1,
- `pushdef(`$1',$2)$4`'popdef(`$1')$0(`$1',decr($2),$3,`$4')')')')
-fordown(`__i',__latest,eval(__latest-10),`
- syscmd(sed "s/\&/\&/g;s/>/\>/g;s/</\</g" _get(`notes', __i).m4 | m4 -D__feed_rss)')
-</channel>
-</rss>
--- /dev/null
+include(meta_notes.m4)dnl
+<?xml version="1.0" encoding="UTF-8"?>
+<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
+<title>Amin Bandali's Personal Site</title>
+<id>tag:bandali.eu.org,atom,notes/</id>
+<link href="https://bandali.eu.org/notes.atom" rel="self" type="application/atom+xml"/>
+<link href="https://bandali.eu.org" rel="alternate" type="text/html"/>
+<updated>syscmd(date -Iseconds -u | tr -d \\n)</updated>
+define(__feed_atom)dnl
+define(`fordown',`ifelse($#,0,``$0'',`ifelse(eval($2>=$3),1,
+ `pushdef(`$1',$2)$4`'popdef(`$1')$0(`$1',decr($2),$3,`$4')')')')
+fordown(`__i',__latest,eval(__latest-10),`
+ syscmd(sed "s/\&/\&/g;s/>/\>/g;s/</\</g" _get(`notes', __i).m4 | m4 -D__feed_atom)')
+</feed>
--- /dev/null
+include(meta_notes.m4)dnl
+<?xml version="1.0" encoding="UTF-8" ?>
+<rss version="2.0">
+<channel>
+<title>Amin Bandali's Personal Site</title>
+<description>Notes and blog posts by Amin Bandali</description>
+<link>https://bandali.eu.org</link>
+<lastBuildDate>syscmd(date -uR | tr -d \\n)</lastBuildDate>
+<pubDate>syscmd(date -uR | tr -d \\n)</pubDate>
+<ttl>1800</ttl>
+define(__feed_rss)dnl
+define(`fordown',`ifelse($#,0,``$0'',`ifelse(eval($2>=$3),1,
+ `pushdef(`$1',$2)$4`'popdef(`$1')$0(`$1',decr($2),$3,`$4')')')')
+fordown(`__i',__latest,eval(__latest-10),`
+ syscmd(sed "s/\&/\&/g;s/>/\>/g;s/</\</g" _get(`notes', __i).m4 | m4 -D__feed_rss)')
+</channel>
+</rss>