sgregoratto.me

source files for www.sgregoratto.me
git clone git://git.sgregoratto.me/sgregoratto.me
Log | Files | Refs

Makefile (599B)


      1 include posts
      2 
      3 SERVER	= liquid@www.sgregoratto.me
      4 WEBROOT	= /var/www/homepage
      5 RSOPTS	= -chazzvP
      6 HTML	= $(POSTS:.xml=.html)
      7 FILES	= index.html $(HTML) blog.html atom.xml css
      8 
      9 all: $(FILES)
     10 
     11 blog.html: $(POSTS) templates/postlist.xml
     12 	@echo $@
     13 	@sblg -t templates/postlist.xml -o $@ $(POSTS)
     14 
     15 atom.xml: $(POSTS) templates/atom.xml
     16 	@echo $@
     17 	@sblg -t templates/atom.xml -ao - $(POSTS) | grep -Fv "Untitled author" > $@
     18 
     19 %.html: %.xml templates/post.xml
     20 	@echo $@
     21 	@sblg -t templates/post.xml -co $@ $<
     22 
     23 sync: all
     24 	rsync $(RSOPTS) --delete $(FILES) $(SERVER):$(WEBROOT)/
     25 
     26 clean:
     27 	rm -f *.html atom.xml