-
Notifications
You must be signed in to change notification settings - Fork 22
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
Switching from Madoko to AsciiDoc for PNA specification #128
base: main
Are you sure you want to change the base?
Changes from 4 commits
8bae985
872f2dc
49b7fee
a83abc6
278d14a
26abba9
1a3a92f
ee0fbeb
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,15 +1,17 @@ | ||
SPEC=PNA | ||
ROUGE_STYLE=github | ||
|
||
all: build/${SPEC}.pdf | ||
all: ${SPEC}.pdf | ||
|
||
build/${SPEC}.pdf: ${SPEC}.mdk | ||
madoko --pdf -vv --png --odir=build $< | ||
|
||
build/${SPEC}.pdf: p4.json | ||
build/${SPEC}.pdf: pna.p4 | ||
${SPEC}.pdf: ${SPEC}.adoc | ||
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. Please add the file pna.p4 as a dependency on this rule, and the rule for generating HTML output, since PNA.adoc has include directives that include portions of pna.p4. If pna.p4 changes, it is likely that the PDF and/or HTML files need to be updated, too. 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. Also, please add a Makefile rule to generate HTML output. I don't see one here. It would be helpful to have that, even if the original Makefile did not have such a rule to generate HTML from Madoko source. |
||
time asciidoctor-pdf -v \ | ||
-r asciidoctor-mathematical \ | ||
-r asciidoctor-bibtex \ | ||
-a pdf-fontsdir=resources/fonts \ | ||
-a rouge-style=$(ROUGE_STYLE) $< | ||
|
||
clean: | ||
${RM} -rf build | ||
/bin/rm -f ${SPEC}.pdf | ||
|
||
P4C=p4test | ||
#P4C=p4test --Wdisable=uninitialized_out_param | ||
|
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 believe the p4.json file should be removed with this PR, unless you find some reference to that file in the files that remain. I think p4.json was only used for Madoko syntax highlighting.