/Makefile

http://github.com/ananthakumaran/monky · Makefile · 28 lines · 21 code · 7 blank · 0 comment · 3 complexity · 8dc2b36e69278fab9f64c801a031925b MD5 · raw file

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