|
@@ -73,6 +73,10 @@ clean:
|
|
[ ! -d $(OUTPUTDIR) ] || rm -rf $(OUTPUTDIR)
|
|
[ ! -d $(OUTPUTDIR) ] || rm -rf $(OUTPUTDIR)
|
|
cd $(BUILDDIR); git clean -f -X
|
|
cd $(BUILDDIR); git clean -f -X
|
|
|
|
|
|
|
|
+publish: html pdf
|
|
|
|
+ $(PELICAN) $(BUILDDIR) -o $(OUTPUTDIR) -s $(PUBLISHCONF) $(PELICANOPTS)
|
|
|
|
+ [ -f $(BUILDDIR)/thesis.pdf ] && cp $(BUILDDIR)/thesis.pdf $(OUTPUTDIR)
|
|
|
|
+
|
|
serve:
|
|
serve:
|
|
ifdef PORT
|
|
ifdef PORT
|
|
cd $(OUTPUTDIR) && $(PY) -m pelican.server $(PORT)
|
|
cd $(OUTPUTDIR) && $(PY) -m pelican.server $(PORT)
|
|
@@ -80,9 +84,12 @@ else
|
|
cd $(OUTPUTDIR) && $(PY) -m pelican.server
|
|
cd $(OUTPUTDIR) && $(PY) -m pelican.server
|
|
endif
|
|
endif
|
|
|
|
|
|
-publish: html pdf
|
|
|
|
- $(PELICAN) $(BUILDDIR) -o $(OUTPUTDIR) -s $(PUBLISHCONF) $(PELICANOPTS)
|
|
|
|
- [ -f $(BUILDDIR)/thesis.pdf ] && cp $(BUILDDIR)/thesis.pdf $(OUTPUTDIR)
|
|
|
|
|
|
+pubserve: publish
|
|
|
|
+ifdef PORT
|
|
|
|
+ cd $(OUTPUTDIR) && $(PY) -m pelican.server $(PORT)
|
|
|
|
+else
|
|
|
|
+ cd $(OUTPUTDIR) && $(PY) -m pelican.server
|
|
|
|
+endif
|
|
|
|
|
|
rsync_upload: publish
|
|
rsync_upload: publish
|
|
rsync -e "ssh -p $(SSH_PORT)" -P -rvzc --delete $(OUTPUTDIR)/ $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR) --cvs-exclude
|
|
rsync -e "ssh -p $(SSH_PORT)" -P -rvzc --delete $(OUTPUTDIR)/ $(SSH_USER)@$(SSH_HOST):$(SSH_TARGET_DIR) --cvs-exclude
|