15f7d4c83ed6eb4e7eefda4cc51693687d9f5b6f
Makefile
... | ... | @@ -2,11 +2,13 @@ |
2 | 2 | # |
3 | 3 | |
4 | 4 | DIRECTIVES := ':cell:\|:cellnr:\|:head:\|:redirect\|:source:\|:source\|:sourceend:\|:tableend:\|:toc:' |
5 | -NON_NETWORK_PAGES := $(shell ls wiki.d/* | grep -v Network\.) |
|
6 | -PM_SAFE_PAGES := $(shell grep -vl "$(DIRECTIVES)" $(NON_NETWORK_PAGES)) |
|
7 | -MD_SAFE_PAGES := $(patsubst wiki.d/%,%.md,$(PM_SAFE_PAGES)) |
|
8 | -MD_GROUPED_PAGES := $(subst .,/,$(MD_SAFE_PAGES)) |
|
9 | -.SECONDARY: $(MD_GROUPED_PAGES) # don't delete .md files |
|
5 | +WIKI_PAGES := $(shell ls wiki.d/*) |
|
6 | +SAFE_PAGES := $(shell grep -vl "$(DIRECTIVES)" $(WIKI_PAGES)) |
|
7 | +UNGROUPED_PAGES := $(patsubst wiki.d/%,%,$(SAFE_PAGES)) |
|
8 | +GROUPED_PAGES := $(subst .,/,$(UNGROUPED_PAGES)) |
|
9 | +RAW_PAGES := $(patsubst %,%.raw,$(GROUPED_PAGES)) |
|
10 | +MD_PAGES := $(patsubst %.raw,%.md,$(RAW_PAGES)) |
|
11 | +.SECONDARY: $(RAW_PAGES) # don't delete .md files |
|
10 | 12 | |
11 | 13 | #GROUPS=$(shell find [A-Z]* -type d) |
12 | 14 | GROUPS=Car |
... | ... | @@ -35,4 +37,5 @@ help: |
35 | 37 | mkdir -p $(dir $@) |
36 | 38 | curl "$(WIKI)?n=$(subst /,.,$(basename $@))&action=markdown" -o $@ |
37 | 39 | |
38 | -all: $(MD_GROUPED_PAGES) |
|
40 | +fetch: $(RAW_PAGES) |
|
41 | +all: $(MD_PAGES) |