2016-08-13 20:08:43 +01:00
|
|
|
BASEDIR=$(PWD)
|
|
|
|
ENV=$(BASEDIR)/env/bin
|
2016-06-05 19:47:14 +01:00
|
|
|
NODE_BIN=node_modules/.bin
|
2016-08-13 20:08:43 +01:00
|
|
|
PELICAN=$(ENV)/pelican
|
2016-06-05 19:47:14 +01:00
|
|
|
|
|
|
|
OUTPUTDIR=$(BASEDIR)/output
|
2016-06-25 18:10:58 +01:00
|
|
|
PLUGINS_DIR=$(BASEDIR)/pelican_plugins
|
2016-08-13 20:08:43 +01:00
|
|
|
DEPLOY_DIR=$(BASEDIR)/deploy
|
2017-01-09 22:14:38 +00:00
|
|
|
CONFIG_FILE=$(BASEDIR)/pelicanconf.py
|
2016-06-05 19:47:14 +01:00
|
|
|
|
|
|
|
build: install
|
2016-06-07 18:39:17 +01:00
|
|
|
rm -rf $(OUTPUTDIR)/*
|
2016-06-05 19:47:14 +01:00
|
|
|
@echo ">> Building pelican..."
|
2016-09-08 21:24:39 +01:00
|
|
|
$(PELICAN) -o $(OUTPUTDIR) -vs $(CONFIG_FILE)
|
2016-06-13 09:04:21 +01:00
|
|
|
mv $(OUTPUTDIR)/assets/robots.txt $(OUTPUTDIR)
|
2016-06-11 12:53:23 +01:00
|
|
|
cp -R $(OUTPUTDIR)/assets/* $(OUTPUTDIR)/static
|
|
|
|
rm -rf $(OUTPUTDIR)/assets
|
2016-06-05 19:47:14 +01:00
|
|
|
|
2016-06-12 22:04:30 +01:00
|
|
|
|
2017-01-09 22:14:38 +00:00
|
|
|
install: env node_modules
|