Skip to content

Commit

Permalink
Expanded all flags into switches in Makefile include -s to --smart
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrocode committed Mar 14, 2018
1 parent 0806ed1 commit a598d5c
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,33 @@ pdf: dir
echo $$FILE_NAME.pdf; \
pandoc --standalone --template $(STYLES_DIR)/$(STYLE).tex \
--from markdown --to context \
-V papersize=A4 \
-o $(OUT_DIR)/$$FILE_NAME.tex $$f > /dev/null; \
context $(OUT_DIR)/$$FILE_NAME.tex --result=$(OUT_DIR)/$$FILE_NAME.pdf > $(OUT_DIR)/context_$$FILE_NAME.log 2>&1; \
--variable papersize=A4 \
--output $(OUT_DIR)/$$FILE_NAME.tex $$f > /dev/null; \
context $(OUT_DIR)/$$FILE_NAME.tex \
--result=$(OUT_DIR)/$$FILE_NAME.pdf > $(OUT_DIR)/context_$$FILE_NAME.log 2>&1; \
done

html: dir
for f in $(IN_DIR)/*.md; do \
FILE_NAME=`basename $$f | sed 's/.md//g'`; \
echo $$FILE_NAME.html; \
pandoc --standalone -H $(STYLES_DIR)/$(STYLE).css \
pandoc --standalone --include-in-header $(STYLES_DIR)/$(STYLE).css \
--from markdown --to html \
-o $(OUT_DIR)/$$FILE_NAME.html $$f; \
--output $(OUT_DIR)/$$FILE_NAME.html $$f; \
done

docx: dir
for f in $(IN_DIR)/*.md; do \
FILE_NAME=`basename $$f | sed 's/.md//g'`; \
echo $$FILE_NAME.docx; \
pandoc -s -S $$f -o $(OUT_DIR)/$$FILE_NAME.docx; \
pandoc --standalone --smart $$f --output $(OUT_DIR)/$$FILE_NAME.docx; \
done

rtf: dir
for f in $(IN_DIR)/*.md; do \
FILE_NAME=`basename $$f | sed 's/.md//g'`; \
echo $$FILE_NAME.rtf; \
pandoc -s -S $$f -o $(OUT_DIR)/$$FILE_NAME.rtf; \
pandoc --standalone --smart $$f --output $(OUT_DIR)/$$FILE_NAME.rtf; \
done

dir:
Expand Down

0 comments on commit a598d5c

Please sign in to comment.