pn

the website
git clone ssh://anon@git.pastanoggin.com
Log | Files | Refs | README | LICENSE

Makefile (584B)


      1 PREFIX = /var/www
      2 WEBDIR = ${PREFIX}/htdocs/pastanoggin.com
      3 
      4 PAGES = index.html about.html contact.html blog.html links.html
      5 
      6 all: ${PAGES}
      7 
      8 .SUFFIXES: .in .html
      9 .in.html: status.in
     10 	./templ $< $@
     11 
     12 clean:
     13 	rm -f *.html
     14 
     15 install: all
     16 	install ${PAGES} ${DESTDIR}${WEBDIR}
     17 	install -d ${DESTDIR}${WEBDIR}/img
     18 	install img/* ${DESTDIR}${WEBDIR}/img
     19 	install -d ${DESTDIR}${WEBDIR}/style
     20 	install style/* ${DESTDIR}${WEBDIR}/style
     21 
     22 uninstall:
     23 	(cd ${DESTDIR}${WEBDIR}; rm -f ${PAGES})
     24 	rm -fr ${DESTDIR}${WEBDIR}/img
     25 	rm -fr ${DESTDIR}${WEBDIR}/style
     26 
     27 .PHONY: all clean install uninstall