diff options
author | Sébastien Dailly <sebastien@chimrod.com> | 2013-04-28 19:54:45 +0200 |
---|---|---|
committer | Sébastien Dailly <sebastien@chimrod.com> | 2013-05-01 10:33:08 +0200 |
commit | dc214056449119b29ad7b19b8d47e81b343ff453 (patch) | |
tree | e5fbae31ed73509852d45354ab682e8c96e5c42f /Makefile | |
parent | bfc347fdea8ebf0246902cbf7c95cfd5b518b4e8 (diff) |
Updated theme and templates
Updated to pelican 3.2
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -28,6 +28,7 @@ help: @echo ' make publish generate using production settings ' @echo ' make serve serve site at http://localhost:8000' @echo ' make devserver start/restart develop_server.sh ' + @echo ' make stopserver stop local server ' @echo ' ssh_upload upload the web site via SSH ' @echo ' rsync_upload upload the web site via rsync+ssh ' @echo ' dropbox_upload upload the web site via Dropbox ' @@ -43,17 +44,22 @@ $(OUTPUTDIR)/%.html: $(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) clean: - find $(OUTPUTDIR) -mindepth 1 -delete + [ ! -d $(OUTPUTDIR) ] || find $(OUTPUTDIR) -mindepth 1 -delete regenerate: clean $(PELICAN) -r $(INPUTDIR) -o $(OUTPUTDIR) -s $(CONFFILE) $(PELICANOPTS) serve: - cd $(OUTPUTDIR) && python -m SimpleHTTPServer + cd $(OUTPUTDIR) && python -m pelican.server devserver: $(BASEDIR)/develop_server.sh restart +stopserver: + kill -9 `cat pelican.pid` + kill -9 `cat srv.pid` + @echo 'Stopped Pelican and SimpleHTTPServer processes running in background.' + publish: $(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(PUBLISHCONF) $(PELICANOPTS) |