-
Notifications
You must be signed in to change notification settings - Fork 35
/
Makefile
47 lines (39 loc) · 1.34 KB
/
Makefile
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
#user=frideau
ifeq (${user},)
userat :=
else
userat := ${user}@
endif
website:=${userat}common-lisp.net:/project/asdf/public_html/
output = asdf.html asdf asdf.pdf asdf.info
webfiles = index.html .htaccess style.css cclan.png lisp-logo120x80.png favicon.ico ${output}
intermediate = asdf.cps asdf.log asdf.vr asdf.aux asdf.fn asdf.toc asdf.vrs \
asdf.cp asdf.fns asdf.ky asdf.pg asdf.tp asdf.tps
all: asdf.html asdf.info asdf.pdf manual-html
log_output = > $@.log 2>&1 || { echo " failed. See log in $@.log" ; exit 1 ;}
manual-html: asdf.texinfo
@echo "makeinfo --html asdf.texinfo"
@makeinfo --html asdf.texinfo \
$(log_output)
asdf.html: asdf.texinfo
@echo "makeinfo --html --no-split --no-headers -o asdf.html asdf.texinfo"
@makeinfo --html --no-split --no-headers -o asdf.html asdf.texinfo \
$(log_output)
asdf.info: asdf.texinfo
@echo "makeinfo asdf.texinfo"
@makeinfo asdf.texinfo \
$(log_output)
asdf.pdf: asdf.texinfo
@echo "texi2pdf asdf.texinfo"
@texi2pdf asdf.texinfo \
$(log_output)
website: all
rsync -lt --no-g ${webfiles} ${website}
rsync --recursive --no-g --delete asdf ${website}
rsync -lt --no-g Changelog ${website}/changelog
.PHONY: clean intermediate-clean manual-html
intermediate-clean:
rm -f ${intermediate}
clean: intermediate-clean
rm -f asdf.html asdf.pdf asdf.info
rm -rf asdf/ asdf.t2d/