aboutsummaryrefslogtreecommitdiff
path: root/mk/docs.mk
blob: 6e78ebe4352d2c0af78ddeeb7482d73abfdaffd4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
######################################################################
# Doc variables and rules
######################################################################

doc/version.texi: $(MKFILES) rust.texi
	(cd $(S) && git log -1 \
      --pretty=format:'@macro gitversion%n%h %ci%n@end macro%n') >$@

doc/%.pdf: %.texi doc/version.texi
	texi2pdf --batch -I doc -o $@ --clean $<

doc/%.html: %.texi doc/version.texi
	makeinfo -I doc --html --ifhtml --force --no-split --output=$@ $<

docsnap: doc/rust.pdf
	mv $< doc/rust-$(shell date +"%Y-%m-%d")-snap.pdf