started writing a Makefile
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,2 +1,4 @@
|
|||||||
*.html
|
*.html
|
||||||
*.pdf
|
*.pdf
|
||||||
|
|
||||||
|
/output
|
||||||
|
|||||||
17
Makefile
Normal file
17
Makefile
Normal file
@@ -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
|
||||||
|
|
||||||
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:
|
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 `^[`
|
- Ctrl-Key `^[`
|
||||||
- Octal `\033` (\0 for octal)
|
- Octal `\033` (\0 for octal)
|
||||||
- Hexadecimal `\x1B` (\x for hexadecimal)
|
- Hexadecimal `\x1B` (\x for hexadecimal)
|
||||||
|
|||||||
Reference in New Issue
Block a user