-
Notifications
You must be signed in to change notification settings - Fork 600
Makefile: Replace vbatts/pandoc with a PANDOC variable #428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
|
|
||
| DOCKER ?= $(shell which docker) | ||
| DOCKER ?= $(shell command -v docker) | ||
| PANDOC ?= $(shell command -v pandoc) | ||
| # These docs are in an order that determines how they show up in the PDF/HTML docs. | ||
| DOC_FILES := \ | ||
| version.md \ | ||
|
|
@@ -32,7 +33,7 @@ output/docs.pdf: $(DOC_FILES) | |
| -v $(shell pwd)/:/input/:ro \ | ||
| -v $(shell pwd)/output/:/output/ \ | ||
| -u $(shell id -u) \ | ||
| vbatts/pandoc -f markdown_github -t latex -o /$@ $(patsubst %,/input/%,$(DOC_FILES)) | ||
| $(PANDOC) -f markdown_github -t latex -o /$@ $(patsubst %,/input/%,$(DOC_FILES)) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm just curious before any test or investigation, $(PANDOC) is a path to the pandoc executive when default, but we expect pandoc image here, how this replacement works?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On Thu, May 19, 2016 at 08:40:21PM -0700, Lai Jiangshan wrote:
Oops, I had missed this. See #440 for some paths forward. |
||
|
|
||
| output/docs.html: $(DOC_FILES) | ||
| mkdir -p output/ && \ | ||
|
|
@@ -42,7 +43,7 @@ output/docs.html: $(DOC_FILES) | |
| -v $(shell pwd)/:/input/:ro \ | ||
| -v $(shell pwd)/output/:/output/ \ | ||
| -u $(shell id -u) \ | ||
| vbatts/pandoc -f markdown_github -t html5 -o /$@ $(patsubst %,/input/%,$(DOC_FILES)) | ||
| $(PANDOC) -f markdown_github -t html5 -o /$@ $(patsubst %,/input/%,$(DOC_FILES)) | ||
|
|
||
| code-of-conduct.md: | ||
| curl -o $@ https://raw.githubusercontent.com/opencontainers/tob/d2f9d68c1332870e40693fe077d311e0742bc73d/code-of-conduct.md | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose this is fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wking It looks like it should work fine, but I got error
make: command: Command not found, I have to change it back towhich, any insight on this? Maybe related to bash version?