mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Merge pull request #950 from fbs/makedebug
Add a debug target to the template makefile
This commit is contained in:
commit
2a53934834
1 changed files with 7 additions and 1 deletions
|
|
@ -20,6 +20,11 @@ S3_BUCKET=$s3_bucket
|
||||||
|
|
||||||
DROPBOX_DIR=$dropbox_dir
|
DROPBOX_DIR=$dropbox_dir
|
||||||
|
|
||||||
|
DEBUG ?= 0
|
||||||
|
ifeq ($(DEBUG), 1)
|
||||||
|
PELICANOPTS += -D
|
||||||
|
endif
|
||||||
|
|
||||||
help:
|
help:
|
||||||
@echo 'Makefile for a pelican Web site '
|
@echo 'Makefile for a pelican Web site '
|
||||||
@echo ' '
|
@echo ' '
|
||||||
|
|
@ -38,7 +43,8 @@ help:
|
||||||
@echo ' s3_upload upload the web site via S3 '
|
@echo ' s3_upload upload the web site via S3 '
|
||||||
@echo ' github upload the web site via gh-pages '
|
@echo ' github upload the web site via gh-pages '
|
||||||
@echo ' '
|
@echo ' '
|
||||||
|
@echo 'Set the DEBUG variable to 1 to enable debugging, e.g. make DEBUG=1 html'
|
||||||
|
@echo ' '
|
||||||
|
|
||||||
html:
|
html:
|
||||||
$$(PELICAN) $$(INPUTDIR) -o $$(OUTPUTDIR) -s $$(CONFFILE) $$(PELICANOPTS)
|
$$(PELICAN) $$(INPUTDIR) -o $$(OUTPUTDIR) -s $$(CONFFILE) $$(PELICANOPTS)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue