Makefile 1.37 KB
Newer Older
1
2
3
4
5
6
7
#user=frideau
ifeq (${user},)
userat :=
else
userat := ${user}@
endif
website:=${userat}common-lisp.net:/project/asdf/public_html/
8
output = asdf.html asdf asdf.pdf asdf.info
9
webfiles = index.html .htaccess style.css cclan.png lisp-logo120x80.png favicon.ico ${output}
10
intermediate = asdf.cps asdf.log asdf.vr asdf.aux asdf.fn asdf.toc asdf.vrs \
11
		asdf.cp asdf.fns asdf.ky asdf.pg asdf.tp asdf.tps
12

13
all:	asdf.html asdf.info asdf.pdf manual-html
Robert P. Goldman's avatar
Robert P. Goldman committed
14

15
16
17
18
version.texinfo: ../version.lisp-expr
	head -n 1 $^ | perl -ne 'm|\"(.*)\"|; print "\@set VERSION $$1\n"' > $@

manual-html: asdf.texinfo version.texinfo
19
20
	makeinfo --html asdf.texinfo \
	2>&1 > manual-html.log || { echo "failed. See log in manual-html.log" ; exit 1 ;}
21

22
asdf.html: asdf.texinfo version.texinfo
23
24
	makeinfo --html --no-split --no-headers -o asdf.html asdf.texinfo \
	2>&1 > asdf.html.log || { echo "failed. See log in asdf.html.log" ; exit 1 ;}
25

26
asdf.info: asdf.texinfo version.texinfo
27
28
	makeinfo asdf.texinfo

29
asdf.pdf: asdf.texinfo version.texinfo
30
31
	texi2pdf asdf.texinfo \
	2>&1 > asdf.pdf.log || { echo "failed. See log in asdf.pdf.log" ; exit 1 ;}
32

33
website: all
34
35
	rsync -lt --no-g ${webfiles} ${website}
	rsync -lt --no-g ../debian/changelog ${website}/changelog
36

37
38
.PHONY: clean intermediate-clean manual-html
intermediate-clean:
39
	rm -f ${intermediate}
40
clean: intermediate-clean
41
	rm -f asdf.html asdf.pdf asdf.info
42
	rm -rf asdf/ asdf.t2d/