www

Source code for https://www.patrick.marchand.ski
Log | Files | Refs

Makefile (668B)


      1 SRC?=${.CURDIR}/src
      2 DST?='/var/www/htdocs/www.patrick.marchand.ski'
      3 TITLE?='Patrick Marchand'
      4 URL?='https://www.patrick.marchand.ski'
      5 
      6 SSG?="${HOME}/bin/ssg5"
      7 RSSG?="${HOME}/bin/rssg"
      8 BROWSER?=firefox
      9 
     10 INDEX = ${SRC}/index.md ${SRC}/tech/index.md ${SRC}/ski/index.md
     11 FEED = ${INDEX:.md=.xml}
     12 
     13 .SUFFIXES: .md .xml
     14 
     15 .PHONY: clean build open watch all
     16 
     17 all: build
     18 
     19 watch: build
     20 	${HOME}/Scripts/start-ssg ${SSG} ${SRC} ${DST} ${TITLE} ${URL}
     21 
     22 build: rss
     23 	${SSG} ${SRC} ${DST} ${TITLE} ${URL}
     24 
     25 rss: ${FEED}
     26 
     27 .md.xml:
     28 	${RSSG} ${.IMPSRC} 'RSS feed for Patrick Marchand'  > ${.TARGET}
     29 
     30 open: 
     31 	${BROWSER} localhost:80/index.html
     32 
     33 clean:
     34 	rm ${FEED}
     35 	cd ${DST} && rm -rf * .*