-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (34 loc) · 1.16 KB
/
Makefile
File metadata and controls
53 lines (34 loc) · 1.16 KB
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
ASCIIDOC_FILTERS ?= /usr/share/asciidoc/filters
ifeq ($(USER),lvv)
HOMEDIR := /home/lvv/p/volnitsky.com/
INCLUDE := $(HOMEDIR)/include.mk
else
INCLUDE := /dev/null
endif
include $(INCLUDE)
CLEAN_LIST += $(wildcard *.png)
COPY_LIST += $(wildcard *.png)
mplw:
rm -f t.png
cat t.mplw | mplw.py -o t.png -
display t.png
%.png : %.mplw
cat $< | mplw.py - -o $@
#index.html: example-data.png example-sin.png
#index.html:
localweb: example-data.png example-sin.png
t.html: t.ad *.py *.conf
rm -f .*.png
asciidoc --unsafe $< && firefox $@
install:
[[ -d "$(ASCIIDOC_FILTERS)" ]] || { echo "*** asciidoc's filters directory not found ***"; exit 33; }
mkdir -p $(ASCIIDOC_FILTERS)/mpl/
rm -f $(ASCIIDOC_FILTERS)/mpl/{mplw.py,mpl.conf}
cp -v mplw.py $(ASCIIDOC_FILTERS)/mpl/
cp -v mpl.conf $(ASCIIDOC_FILTERS)/mpl/
chmod +x $(ASCIIDOC_FILTERS)/mpl/mplw.py
debug_install:
mkdir -p $(ASCIIDOC_FILTERS)/mpl/
rm -f $(ASCIIDOC_FILTERS)/mpl/{mplw.py,mpl.conf}
ln -sf -v `pwd`/mplw.py $(ASCIIDOC_FILTERS)/mpl/
ln -sf -v `pwd`/mpl.conf $(ASCIIDOC_FILTERS)/mpl/