magit.rcp: use el-get's default compilation

We still use make for producing the info file. Since Windows users will
probably not go through the trouble of installing make and makeinfo,
disable that step in Windows.

The magit-autoloads file is produced in the Makefile from ;;;###autoload
cookies; since el-get extracts those and puts them into .loaddefs by
default we don't need to (require 'magit-autoloads) anymore.

Removed the ("touch" "`find . -name Makefile`") from
:build/berkeley-unix since that would create a file literally called
"`find . -name Makefile`", the `` would not be expanded as the shell is
not being invoked. It was probably some leftover that's no longer needed.
This commit is contained in:
Noam Postavsky 2014-10-06 19:44:14 -04:00
parent 7231790302
commit 0fada2e0e2

View File

@ -5,9 +5,10 @@
:pkgname "magit/magit"
:depends (cl-lib git-modes)
:info "."
;; let el-get care about autoloads so that it works with all OSes
:build (if (version<= "24.3" emacs-version)
`(("make" ,(format "EMACS=%s" el-get-emacs) "all"))
`(("make" ,(format "EMACS=%s" el-get-emacs) "docs")))
:build/berkeley-unix (("touch" "`find . -name Makefile`") ("gmake"))
:prepare (require 'magit-autoloads))
;; use the Makefile to produce the info manual, el-get can
;; handle compilation and autoloads on its own.
:compile t
:build `(("make" "docs"))
:build/berkeley-unix (("gmake docs"))
;; assume windows lacks make and makeinfo
:build/windows-nt (progn nil))