PageRenderTime 243ms CodeModel.GetById 140ms app.highlight 3ms RepoModel.GetById 98ms app.codeStats 0ms

/Makefile

http://github.com/ananthakumaran/monky
Makefile | 28 lines | 21 code | 7 blank | 0 comment | 3 complexity | 8dc2b36e69278fab9f64c801a031925b MD5 | raw file
 1VERSION=0.1
 2ELS=monky.el
 3DIST_FILES=$(ELS) Makefile monky.texi monky.info README.md monky-pkg.el.in monky-pkg.el
 4
 5all: monky.elc monky.info
 6
 7monky.elc: monky.el
 8	emacs -Q --batch -f batch-byte-compile monky.el
 9
10monky-pkg.el: monky-pkg.el.in
11	sed -e s/@VERSION@/$(VERSION)/ < $< > $@
12
13monky.info: monky.texi
14	makeinfo monky.texi
15
16update-doc: monky.info
17	rm -rf /tmp/monky-gh-pages
18	git clone -b gh-pages . /tmp/monky-gh-pages
19	makeinfo --html --no-split --css-ref=http://ananthakumaran.github.com/monky/monky.css -o /tmp/monky-gh-pages/index.html monky.texi
20	cd /tmp/monky-gh-pages && git add index.html && git commit -m "doc update" && git push origin gh-pages
21
22dist: $(DIST_FILES)
23	mkdir -p monky-$(VERSION)
24	cp $(DIST_FILES) monky-$(VERSION)
25	tar -cvf monky-$(VERSION).tar monky-$(VERSION)
26
27clean:
28	rm -rf monky-*.tar monky-$(VERSION) monky-pkg.el monky.info