Created
May 10, 2011 21:29
-
-
Save tumf/965418 to your computer and use it in GitHub Desktop.
magit 1.0.0 Makefile for Carbon Emacs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| VERSION=1.0.0 | |
| EMACS=/Applications/Emacs.app/Contents/MacOS/Emacs | |
| PREFIX=/Applications/Emacs.app/Contents/Resources | |
| ELS=magit.el magit-svn.el magit-topgit.el magit-key-mode.el | |
| ELCS=$(ELS:.el=.elc) | |
| DIST_FILES=$(ELS) Makefile magit.texi README.md magit.spec.in magit-pkg.el.in 50magit.el | |
| .PHONY=install | |
| BATCH=$(EMACS) -batch -q -no-site-file -eval \ | |
| "(setq load-path (cons (expand-file-name \".\") load-path))" | |
| %.elc: %.el | |
| $(BATCH) --eval '(byte-compile-file "$<")' | |
| all: $(ELCS) magit.info magit.spec magit-pkg.el | |
| magit.spec: magit.spec.in | |
| sed -e s/@VERSION@/$(VERSION)/ < $< > $@ | |
| magit-pkg.el: magit-pkg.el.in | |
| sed -e s/@VERSION@/$(VERSION)/ < $< > $@ | |
| magit.elc: | |
| magit-key-mode.elc: | |
| magit-svn.elc: | |
| magit-topgit.elc: | |
| magit.info: | |
| # yuck - this needs cleaning up a bit... | |
| dist: $(DIST_FILES) | |
| mkdir -p magit-$(VERSION) | |
| cp $(DIST_FILES) magit-$(VERSION) | |
| tar -cvzf magit-$(VERSION).tar.gz magit-$(VERSION) | |
| rm -rf magit-$(VERSION) | |
| install: all | |
| mkdir -p $(DESTDIR)$(PREFIX)/site-lisp | |
| install -m 644 $(ELS) $(ELCS) $(DESTDIR)$(PREFIX)/site-lisp | |
| mkdir -p $(DESTDIR)$(PREFIX)/info | |
| install -m 644 magit.info $(DESTDIR)$(PREFIX)/info | |
| install-info --info-dir=$(DESTDIR)$(PREFIX)/info $(DESTDIR)$(PREFIX)/info/magit.info | |
| mkdir -p $(DESTDIR)$(PREFIX)/site-lisp/site-start.d | |
| install -m 644 50magit.el $(DESTDIR)$(PREFIX)/site-lisp/site-start.d/50magit.el | |
| clean: | |
| rm -fr magit-pkg.el magit.spec magit.info $(ELCS) *.tar.gz magit-$(VERSION) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment