Last active
December 21, 2015 06:09
-
-
Save almet/6262333 to your computer and use it in GitHub Desktop.
Makefile for pelican with multiple outputs and one single settings file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
generate_site: | |
SITENAME="site" PATH=sitesrc SITEURL="http://siteurl" pelican -s settings.py output_site | |
generate_blog: | |
SITENAME="blog" PATH=blogsrc SITEURL="http://blogurl" pelican -s settings.py output_blog | |
html: generate_blog generate_site | |
@echo "done!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
SITENAME = os.environ['SITENAME'] | |
PATH = os.environ['PATH'] | |
SITEURL = os.environ['SITEURL'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment