CXXFLAGS += -g LDFLAGS += -fuse-ld=lld # git diff ../https\:/cohost.org/nabijaczleweli/index.html whole.html # git diff ../https\:/cohost.org/nabijaczleweli/comments.html comments.html # mv whole.html ../https\:/cohost.org/nabijaczleweli/index.html # mv comments.html ../https\:/cohost.org/nabijaczleweli/ all : whole.html comments.html whole.html : default.pre-frag whole.pre-frag p.html g.html cat $^ > $@ g.html.c: generator allposts.arr shared ./generator < allposts.arr 3 g.html.c # p0.json is the raw dehydrated data; could just use a profile hunk from a post, too p.html.c: profile p0.json jq '.queries[1].state.data.projects[0]' < p0.json | ./profile arr > p.html.c comments.html.c: default.pre-frag comments.pre-frag comments comments.arr { cat default.pre-frag comments.pre-frag; ./comments < comments.arr; } > comments.html.c clean : rm -f whole.html comments.html comments.html.c [gp].html [gp].html.c generator profile comments %.html : %.html.c sed -e 's=https://staging.cohostcdn.org=https://lfs.nabijaczleweli.xyz/0016-cohost-export/&=g' -e 's=https://cohost.org/rc=https://lfs.nabijaczleweli.xyz/0016-cohost-export/&=g' -e 's!href="https://cohost.org/nabijaczleweli/post/!href="#!g' < $< > $@