diff --git a/.gitignore b/.gitignore index 23f832b..5769e10 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ *.html *.pdf + +/output diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d739a90 --- /dev/null +++ b/Makefile @@ -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)/$@ + diff --git a/linux/terminal.md b/linux/terminal.md index 4372e88..75636fa 100644 --- a/linux/terminal.md +++ b/linux/terminal.md @@ -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) diff --git a/make.md b/make.md new file mode 100644 index 0000000..e5cbb04 --- /dev/null +++ b/make.md @@ -0,0 +1,9 @@ +# make + +## terminology + +``` +target: dependency | + command | + command | rule +```