Skip to content

Instantly share code, notes, and snippets.

@hyperking
Last active December 23, 2015 13:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hyperking/6640548 to your computer and use it in GitHub Desktop.
Save hyperking/6640548 to your computer and use it in GitHub Desktop.
Pelican Make file for multiple site generations using one command
PROJECTSITE=$(DROPBOX_DIR)/WEBSITE/PROJECT_site
PROJECTSTORE=$(DROPBOX_DIR)/WEBSITE/PROJECT_store
PROJECTSITE_OUTPUT=$(BASEDIR)/output/PROJECTsite
PROJECTSTORE_OUTPUT=$(BASEDIR)/output/PROJECTstore
SITECONFFILE=$(BASEDIR)/projectconf.py
STORECONFFILE=$(BASEDIR)/projectstoreconf.py
generate_site:
$(PELICAN) $(PROJECTSITE) -o $(PROJECTSITE_OUTPUT) -s $(SITECONFFILE)
generate_store:
$(PELICAN) $(PROJECTSTORE) -o $(PROJECTSTORE_OUTPUT) -s $(STORECONFFILE)
html: generate_site generate_store
@echo "complete!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment