PY and PELICAN env variable overrides for Make

This allows the user to set PY and/or PELICAN environment variable
overrides, which will be respected by the Makefile and devserver.sh.
If, for example, the default Python on your system were Python 3 and
you wanted to run Make with Python 2, using bash you could run
`PY=python2 make`. Refs #915.
This commit is contained in:
Justin Mayer 2014-02-08 14:32:58 -08:00
commit a9d1fdae3d
4 changed files with 12 additions and 6 deletions

View file

@ -1,4 +1,4 @@
PELICAN=$pelican
PELICAN?=$pelican
PELICANOPTS=$pelicanopts
BASEDIR=$$(CURDIR)

View file

@ -2,7 +2,7 @@
##
# This section should match your Makefile
##
PELICAN=$pelican
PELICAN=$${PELICAN:-$pelican}
PELICANOPTS=$pelicanopts
BASEDIR=$$(pwd)