-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from bxparks/develop
merge 0.3.3 into master
- Loading branch information
Showing
5 changed files
with
151 additions
and
171 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Convert GitHub-flavored Markdown to PDF, including embedded images. | ||
# | ||
# Requires pandoc and pdflatex. Here are the stackoverflow articles that helped | ||
# me solve this problem: | ||
# | ||
# - https://stackoverflow.com/questions/9998337 (pandoc) | ||
# - https://stackoverflow.com/questions/29240290 (pdflatex not found) | ||
# - https://stackoverflow.com/questions/13515893 (margin size) | ||
# - https://stackoverflow.com/questions/23811002 (fontsize) | ||
# | ||
# I use '-f gfm' instead of '-f markdown' to handler embedded images better. | ||
# The `-f mardown` option separates out the images into separate Figures which | ||
# are out of context from the text. The `-f gfm` embeds the images directly | ||
# into the flow of the text. | ||
|
||
TARGETS := README.pdf \ | ||
USER_GUIDE.pdf \ | ||
rpn83p.8xk \ | ||
rpn83p-example1.gif \ | ||
rpn83p-example2.gif | ||
|
||
# Create a zip file suitable for third party archives, like cemetech.net and | ||
# ticalc.org. | ||
rpn83p.zip: $(TARGETS) | ||
rm -f $@ | ||
zip -r $@ $^ | ||
|
||
# Convert markdown to PDF. | ||
README.pdf: README.md Makefile | ||
pandoc -V geometry:margin=1in -V fontsize=12pt -f gfm -s -o $@ $< | ||
|
||
# Convert markdown to PDF. | ||
USER_GUIDE.pdf: USER_GUIDE.md Makefile | ||
pandoc -V geometry:margin=1in -V fontsize=12pt -f gfm -s -o $@ $< | ||
|
||
# Copy to local directory to place it at top level in the zip file. | ||
rpn83p.8xk: src/rpn83p.8xk | ||
cp -f $< $@ | ||
|
||
# Compile the binary if needed. | ||
src/rpn83p.8xk: src/*.asm | ||
$(MAKE) -C src rpn83p.8xk | ||
|
||
# Copy the animated GIF as a sample screenshot. | ||
rpn83p-example1.gif: docs/rpn83p-example1.gif | ||
cp -f $< $@ | ||
|
||
# Copy the animated GIF as a sample screenshot. | ||
rpn83p-example2.gif: docs/rpn83p-example2.gif | ||
cp -f $< $@ | ||
|
||
clean: | ||
rm -f $(TARGETS) |
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
Oops, something went wrong.