From b599fdd90504454804a9fccef0c0146ba3a3f133 Mon Sep 17 00:00:00 2001 From: scbj Date: Fri, 31 Jan 2025 16:52:28 +0100 Subject: [PATCH] started writing a Makefile --- .gitignore | 2 ++ Makefile | 17 +++++++++++++++++ linux/terminal.md | 1 + make.md | 9 +++++++++ 4 files changed, 29 insertions(+) create mode 100644 Makefile create mode 100644 make.md 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 +```