started writing a Makefile

This commit is contained in:
scbj
2025-01-31 16:52:28 +01:00
parent e0a934821e
commit b599fdd905
4 changed files with 29 additions and 0 deletions

2
.gitignore vendored
View File

@@ -1,2 +1,4 @@
*.html *.html
*.pdf *.pdf
/output

17
Makefile Normal file
View 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)/$@

View File

@@ -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)

9
make.md Normal file
View File

@@ -0,0 +1,9 @@
# make
## terminology
```
target: dependency |
command |
command | rule
```