Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
conductor-pandoc-docx
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Michael Vernier
conductor-pandoc-docx
Commits
29544e9a
Commit
29544e9a
authored
Feb 17, 2017
by
Michael Vernier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added run commands to makefile
parent
c436ed61
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
8 deletions
+17
-8
Makefile
Makefile
+17
-8
No files found.
Makefile
View file @
29544e9a
...
@@ -16,10 +16,18 @@ IMAGENAMES_PNGSMALL_FULLPATH = $(foreach image,$(IMAGENAMES_PNGSMALL),$(IMAGESDI
...
@@ -16,10 +16,18 @@ IMAGENAMES_PNGSMALL_FULLPATH = $(foreach image,$(IMAGENAMES_PNGSMALL),$(IMAGESDI
all
:
images miscimages doc pdf
all
:
images miscimages doc pdf
doc
:
images
doc
:
images
pandoc
-f
markdown
-t
docx
--data-dir
=
.
$(TARGET)
.md
-o
$(TARGET)
.docx
@
echo
Generating
"
$(TARGET)
.docx"
@
pandoc
-f
markdown
-t
docx
--data-dir
=
.
"
$(TARGET)
.md"
-o
"
$(TARGET)
.docx"
pdf
:
doc
pdf
:
doc
word2pdf
$(TARGET)
.docx
$(TARGET)
.pdf
ifeq
($(OS),Windows_NT)
@
echo
Generating
"
$(TARGET)
.pdf"
@
word2pdf
"
$(TARGET)
.docx"
"
$(TARGET)
.pdf"
else
@
echo
Generating
"
$(TARGET)
.pdf"
@
echo
Warning: PDF generated using LaTEX instead of directly from
"
$(TARGET)
.docx"
.
Output will look different
@
pandoc
-s
"
$(TARGET)
.md"
-o
"
$(TARGET)
.pdf"
endif
miscimages
:
miscimages
:
...
@@ -32,14 +40,15 @@ images: $(IMAGENAMES_PNGSMALL_FULLPATH)
...
@@ -32,14 +40,15 @@ images: $(IMAGENAMES_PNGSMALL_FULLPATH)
%.png
:
%.jpg
%.png
:
%.jpg
$(CONVERTPATH)
/convert
$<
$@
$(CONVERTPATH)
/convert
$<
$@
rundoc
:
@
start
""
"
$(TARGET)
.docx"
runpdf
:
@
start
""
"
$(TARGET)
.pdf"
.SECONDARY
:
.SECONDARY
:
clean
:
clean
:
rm
-rf
$(IMAGENAMES_PNG_FULLPATH)
rm
-rf
$(IMAGENAMES_PNG_FULLPATH)
rm
-rf
$(IMAGENAMES_PNGSMALL_FULLPATH)
rm
-rf
$(IMAGENAMES_PNGSMALL_FULLPATH)
rm
"
$(TARGET)
.docx"
"
$(TARGET)
.pdf"
# run:
\ No newline at end of file
# cmd -c "start $(TARGET).docx"
# runpdf:
#
cmd
-c
"start $(TARGET).pdf"
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment