1 PARAMS
=-a toc
-a toclevels
=3 -a date
=$(shell date
+%Y-
%m-
%d
) -a numbered
-d book
6 PARAMS
+=-a revision
=$(REVISION
)
8 PARAMS
+=-a revision
=$(shell git describe
)$(shell git diff-index HEAD |grep
'' > /dev
/null
&& echo
'+dirty')
11 # local optional makefile for deploying
12 # WEBDIR=/path/to/supybook.fealdia.org/
14 -include Makefile.local
16 DISTFILES
=index.txt index.html Makefile index.pdf
26 @echo
"Usage: make release VERSION=x"
29 @echo
"Version: $(VERSION)"
34 @echo
"No Makefile.local, skipping deploy"
37 @echo
"Using WEBDIR $(WEBDIR)"
40 release
: have-version
clean html pdf
41 tar --owner
=0 --group
=0 --transform
's!^!supybook-$(VERSION)/!' -zcf supybook-
$(VERSION
).
tar.gz
$(DISTFILES
)
47 a2x
$(PARAMS
) -f pdf
$<
50 @
$(RM
) index.html index.pdf
52 deploy
: have-webdir html
53 @echo
"Deploying to $(WEBDIR)"
54 cp index.html
$(WEBDIR
)/devel
/index.html
56 deploy-release
: have-webdir release
57 mkdir
$(WEBDIR
)/$(VERSION
)
58 cp
-t
$(WEBDIR
)/$(VERSION
)/ $(DISTFILES
)
59 cp supybook-
$(VERSION
).
tar.gz
$(WEBDIR
)/download
/
60 @echo
"Remember to modify $(WEBDIR)/index.html manually"
62 .PHONY
: all deploy have-version have-webdir pdf release release-tar