show-pack-counts.pl: switch to Girocco::CLIUtil::Progress class
[girocco.git] / docs / Makefile
blob374ad41f97abfbc108691778fbb4596d405f85d9
1 .POSIX:
3 # Use make V=1 for verbose rule output
5 # default target
6 all:
8 AT = @
9 Q_ = $(AT)
10 Q_0 = $(Q_)
11 Q = $(Q_$(V))
12 SILENT = -s
13 S_ = $(SILENT)
14 S_0 = $(S_)
15 S = $(S_$(V))
16 QHTML_ = $(AT)echo "[HTML] $@" &&
17 QHTML_0 = $(QHTML_)
18 QHTML = $(QHTML_$(V))
20 PERL = perl
21 MDOPTS = --stub
22 MDSCRIPT = ../markdown.git/Markdown.pl
23 MARKDOWN = $(PERL) $(MDSCRIPT) $(MDOPTS)
25 # Clean out the standard six single suffix inference rules
26 .SUFFIXES:
27 .SUFFIXES: .c .sh .f .c˜ .sh˜ .f˜
28 .c:;
29 .f:;
30 .sh:;
31 .c~:;
32 .f~:;
33 .sh~:;
34 .SUFFIXES:
35 .SUFFIXES: .txt .html
37 $(MDSCRIPT) :
38 $(AT)echo "error: missing \"$(MDSCRIPT)\"" >&2 && \
39 echo "error: did you forget to init the markdown.git submodule?" >&2 && \
40 ! :
42 # Pacify stupid makes
43 Makefile:
44 @true
46 .txt.html:
47 $(QHTML)$(MARKDOWN) $< >$@
49 all : doc
51 doc : $(MDSCRIPT)
52 +$(AT)f=; for t in *.txt howto/*.txt technical/*.txt; do test "$${t%?????}*.txt" = "$$t" || f="$$f $${t%.txt}.html"; done; \
53 test "$$f" = "" || $(MAKE) $(S) $$f
55 clean :
56 +$(Q)rm -f *.html howto/*.html technical/*.html