started writing a Makefile
This commit is contained in:
1 parent
e0a934821e
commit
b599fdd905
4 files changed
+29
No files matched your search
@@ -1,2 +1,4 @@
|
||||
*.html
|
||||
*.pdf
|
||||
|
||||
/output
|
||||
@@ -0,0 +1,17 @@
|
||||
|
||||
OUT_DIR = ./output
|
||||
SRC_FILES = $(wildcard *.md)
|
||||
OUT_FILES = $(SRC_FILES:.md=.pdf)
|
||||
|
||||
PANDOC_OPT = --standalone
|
||||
|
||||
.PHONY: all clean git test
|
||||
|
||||
all: $(OUT_FILES)
|
||||
|
||||
clean:
|
||||
rm -f $(OUT_DIR)/*
|
||||
|
||||
%.pdf: %.md
|
||||
pandoc $(PANDOC_OPT) $^ -o $(OUT_DIR)/$@
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
## ANSI escape sequences
|
||||
|
||||
Ansi escape sequences are used to format output in a terminal. They **are prefixed with an escape character**, which can be written in a few ways:
|
||||
|
||||
- Ctrl-Key `^[`
|
||||
- Octal `\033` (\0 for octal)
|
||||
- Hexadecimal `\x1B` (\x for hexadecimal)
|
||||
|
||||
Reference in new issue
Block a user