mandocsite

an attempt to use mandoc(1) as a site framework
Download | Log | Files | Refs

Makefile (368B)


      1 INDEX = index.xml
      2 SRC   = index.8
      3 CSS   = style.css
      4 
      5 $(INDEX): $(SRC) $(CSS)
      6 	mandoc -Thtml -mdoc -O style=$(CSS) $(SRC) > $(INDEX)
      7 
      8 	sed -i '1,2c\
      9 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\
     10    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\
     11 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">\
     12 	' $(INDEX)
     13 
     14 clean:
     15 	rm -f $(INDEX)