Révision | 226df53f1cf99e8d30fe90b0cd94ba8b2e21135c (tree) |
---|---|
l'heure | 2024-06-06 07:18:27 |
Auteur | (del#271881) |
Commiter | qq542vev |
make template を追加。
@@ -6,29 +6,34 @@ | ||
6 | 6 | VERSION = 1.0.0 |
7 | 7 | SRC = src |
8 | 8 | BIN = bin |
9 | +TEMPLATE = template | |
9 | 10 | |
10 | -.PHONY: all clean help version | |
11 | +.POSIX: | |
11 | 12 | |
12 | -all: bin/csv-card-table bin/html-card-table | |
13 | +all: bin template | |
13 | 14 | |
14 | -template/%.html: src/template/%.html | |
15 | - npx html-inline --ignore-links -i '${<}' >'${@}' | |
15 | +bin: bin/csv-card-table bin/html-card-table | |
16 | 16 | |
17 | -${BIN}/csv-card-table: ${SRC}/csv-card-table | |
17 | +${BIN}/csv-card-table: ${SRC}/csv-card-table ${SRC}/gen_anki_card.awk | |
18 | 18 | mkdir -p -- '${@D}' |
19 | 19 | cuktash '${<}' >'${@}' |
20 | 20 | chmod 755 '${@}' |
21 | 21 | |
22 | -${BIN}/html-card-table: ${SRC}/html-card-table | |
22 | +${BIN}/html-card-table: ${SRC}/html-card-table ${SRC}/gen_anki_card.awk | |
23 | 23 | mkdir -p -- '${@D}' |
24 | 24 | cuktash '${<}' >'${@}' |
25 | 25 | chmod 755 '${@}' |
26 | 26 | |
27 | +template: ${TEMPLATE}/template.html | |
28 | + | |
29 | +${TEMPLATE}/template.html: src/template/template.html | |
30 | + npx html-inline --ignore-links -i '${<}' >'${@}' | |
31 | + | |
27 | 32 | # Clean |
28 | 33 | # ===== |
29 | 34 | |
30 | 35 | clean: |
31 | - rm -rf -- ${BIN} | |
36 | + rm -rf -- ${BIN} ${TEMPLATE}/template.html | |
32 | 37 | |
33 | 38 | # Message |
34 | 39 | # ======= |