/Makefile
http://github.com/ananthakumaran/monky · Makefile · 28 lines · 21 code · 7 blank · 0 comment · 3 complexity · 8dc2b36e69278fab9f64c801a031925b MD5 · raw file
- VERSION=0.1
- ELS=monky.el
- DIST_FILES=$(ELS) Makefile monky.texi monky.info README.md monky-pkg.el.in monky-pkg.el
- all: monky.elc monky.info
- monky.elc: monky.el
- emacs -Q --batch -f batch-byte-compile monky.el
- monky-pkg.el: monky-pkg.el.in
- sed -e s/@VERSION@/$(VERSION)/ < $< > $@
- monky.info: monky.texi
- makeinfo monky.texi
- update-doc: monky.info
- rm -rf /tmp/monky-gh-pages
- git clone -b gh-pages . /tmp/monky-gh-pages
- makeinfo --html --no-split --css-ref=http://ananthakumaran.github.com/monky/monky.css -o /tmp/monky-gh-pages/index.html monky.texi
- cd /tmp/monky-gh-pages && git add index.html && git commit -m "doc update" && git push origin gh-pages
- dist: $(DIST_FILES)
- mkdir -p monky-$(VERSION)
- cp $(DIST_FILES) monky-$(VERSION)
- tar -cvf monky-$(VERSION).tar monky-$(VERSION)
- clean:
- rm -rf monky-*.tar monky-$(VERSION) monky-pkg.el monky.info