forked from jkubin/m4root
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhtml_cs.mk
62 lines (46 loc) · 2.34 KB
/
html_cs.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# DO NOT EDIT! This file is generated automatically!
VPATH = gfiles:html
FOLDERS_cs = \
generovani-kodu-v-m4-uvod \
PREVIEW_cs = $(FOLDERS_cs:=/preview.html)
VALIDATE_cs = $(FOLDERS_cs:=/validate.html)
PUBLISH_cs = $(FOLDERS_cs:=/publish.txt)
SPCHECK_cs = $(FOLDERS_cs:=/spell.txt)
FOLDERS += $(FOLDERS_cs)
PREVIEW += $(FOLDERS_cs) $(PREVIEW_cs)
VALIDATE += $(FOLDERS_cs) $(VALIDATE_cs)
PUBLISH += $(FOLDERS_cs) $(PUBLISH_cs)
SPCHECK += $(FOLDERS_cs) $(SPCHECK_cs)
TARGETS += $(FOLDERS_cs) $(PREVIEW_cs) $(VALIDATE_cs) $(PUBLISH_cs) $(SPCHECK_cs)
#:html-sub-targets/sub/su creates all files from generated rules
.PHONY: html-sub-targets sub su
html-sub-targets sub su: $(TARGETS)
#:preview/pre/pr/p for off-line article development
.PHONY: preview pre pr p
preview pre pr p: $(PREVIEW)
#:spell/sp creates files for checking jargon and typos
.PHONY: spell sp
spell sp: $(SPCHECK)
#:publish/pub/pu creates files in a format suitable for CMS
.PHONY: publish pub pu
publish pub pu: $(PUBLISH)
#:validate/val/va/v creates files for testing in HTML validator
.PHONY: validate val va v
validate val va v: $(VALIDATE)
#:all_cs/allcs/cs creates files in ‘cs’ language
.PHONY: all_cs allcs cs
all_cs allcs cs: $(FOLDERS_cs) $(PREVIEW_cs) $(VALIDATE_cs) $(PUBLISH_cs) $(SPCHECK_cs)
#:clean_cs/cl_cs/clcs/ccs deletes ‘cs’ files
.PHONY: clean_cs cl_cs clcs ccs
clean_cs cl_cs clcs ccs:
$(RM) -r $(FOLDERS_cs)
#:fhtml disabled for ‘cs’
fhtml_cs.mk: ;
$(FOLDERS_cs):
mkdir -p $@
generovani-kodu-v-m4-uvod/%.html: rootb.m4 queues.m4 aux.m4 ent.m4 cfg.m4 inline.m4 headings.m4 block.m4 ver.m4 style.m4 lang_cs.m4 css.m4 refs_en.m4 refs_cs.m4 order.m4 lang.m4 incl.m4 $(wildcard intro.mc.html/*.m4 intro.mc.html/*/*.m4) %.m4 intro.mc nav.m4
m4 -DLANG_CODE='cs' -DOUTPUT_FILE='$*.html' $^ | sed -f brackets.sed > $@
generovani-kodu-v-m4-uvod/publish.txt: rootb.m4 queues.m4 aux.m4 ent.m4 cfg.m4 inline.m4 headings.m4 block.m4 ver.m4 style.m4 lang_cs.m4 css.m4 refs_en.m4 refs_cs.m4 order.m4 lang.m4 incl.m4 $(wildcard intro.mc.html/*.m4 intro.mc.html/*/*.m4) publish.m4 intro.mc nav.m4
m4 -DLANG_CODE='cs' -DSOURCE='intro.mc' $^ | sed -f html/publish.sed -f brackets.sed > $@
generovani-kodu-v-m4-uvod/spell.txt: rootb.m4 aux.m4 order.m4 lang.m4 headings.m4 ver.m4 lang_cs.m4 refs_en.m4 refs_cs.m4 incl.m4 spell.m4 intro.mc
m4 -DLANG_CODE='cs' -DSOURCE='intro.mc' $^ > $@