Skip to content
Newer
Older
100644 66 lines (48 sloc) 1.65 KB
e12f0ca @thierryvolpiatto Rename anything prefixes to helm.
thierryvolpiatto authored Mar 15, 2012
1 # makefile for helm.
300d560 @thierryvolpiatto Update headers in all files, copyright etc...
thierryvolpiatto authored Jan 1, 2012
2
3 # Author: Michael Markert.
4 # Copyright (C) 2011~2012, Michael Markert, all rights reserved.
5
6 ## This file is NOT part of GNU Emacs
7 ##
8 ## License
9 ##
10 ## This program is free software; you can redistribute it and/or modify
11 ## it under the terms of the GNU General Public License as published by
12 ## the Free Software Foundation; either version 3, or (at your option)
13 ## any later version.
14 ##
15 ## This program is distributed in the hope that it will be useful,
16 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 ## GNU General Public License for more details.
19 ##
20 ## You should have received a copy of the GNU General Public License
21 ## along with this program; see the file COPYING. If not, write to
22 ## the Free Software Foundation, Inc., 51 Franklin Street, Fifth
23 ## Floor, Boston, MA 02110-1301, USA.
24
0f031b9 @thierryvolpiatto * Makefile: Generate autoloads from here now.
thierryvolpiatto authored Sep 15, 2014
25 # Emacs invocation
26 EMACS_COMMAND := emacs
2a18e2d @thierryvolpiatto Makefile: New added by Michael Markert, Thanks.
thierryvolpiatto authored Aug 17, 2011
27
0f031b9 @thierryvolpiatto * Makefile: Generate autoloads from here now.
thierryvolpiatto authored Sep 15, 2014
28 EMACS := $(EMACS_COMMAND) -Q -batch
29
30 EVAL := $(EMACS) --eval
31
32 PKGDIR := .
33
34 # Additional emacs loadpath
ee500bc @thierryvolpiatto * Makefile Compile now only anything.el, anything-config.el, and *mat…
thierryvolpiatto authored Jan 27, 2012
35 LOADPATH := -L .
2a18e2d @thierryvolpiatto Makefile: New added by Michael Markert, Thanks.
thierryvolpiatto authored Aug 17, 2011
36
0f031b9 @thierryvolpiatto * Makefile: Generate autoloads from here now.
thierryvolpiatto authored Sep 15, 2014
37 # Files to compile
0074841 @thierryvolpiatto * Makefile: Sort files list (#874).
thierryvolpiatto authored Feb 16, 2015
38 EL := $(sort $(wildcard helm*.el))
2a18e2d @thierryvolpiatto Makefile: New added by Michael Markert, Thanks.
thierryvolpiatto authored Aug 17, 2011
39
0f031b9 @thierryvolpiatto * Makefile: Generate autoloads from here now.
thierryvolpiatto authored Sep 15, 2014
40 # Compiled files
2a18e2d @thierryvolpiatto Makefile: New added by Michael Markert, Thanks.
thierryvolpiatto authored Aug 17, 2011
41 ELC := $(EL:.el=.elc)
42
43
0f031b9 @thierryvolpiatto * Makefile: Generate autoloads from here now.
thierryvolpiatto authored Sep 15, 2014
44 .PHONY: clean autoloads batch-compile
45
46 all: clean autoloads batch-compile
2a18e2d @thierryvolpiatto Makefile: New added by Michael Markert, Thanks.
thierryvolpiatto authored Aug 17, 2011
47
48 $(ELC): %.elc: %.el
49 $(EMACS) $(LOADPATH) -f batch-byte-compile $<
50
0f031b9 @thierryvolpiatto * Makefile: Generate autoloads from here now.
thierryvolpiatto authored Sep 15, 2014
51 # Compile needed files
2a18e2d @thierryvolpiatto Makefile: New added by Michael Markert, Thanks.
thierryvolpiatto authored Aug 17, 2011
52 compile: $(ELC)
53
0f031b9 @thierryvolpiatto * Makefile: Generate autoloads from here now.
thierryvolpiatto authored Sep 15, 2014
54 # Compile all files at once
2a18e2d @thierryvolpiatto Makefile: New added by Michael Markert, Thanks.
thierryvolpiatto authored Aug 17, 2011
55 batch-compile:
56 $(EMACS) $(LOADPATH) -f batch-byte-compile $(EL)
57
0f031b9 @thierryvolpiatto * Makefile: Generate autoloads from here now.
thierryvolpiatto authored Sep 15, 2014
58 # Remove all generated files
2a18e2d @thierryvolpiatto Makefile: New added by Michael Markert, Thanks.
thierryvolpiatto authored Aug 17, 2011
59 clean:
60 rm -f $(ELC)
0f031b9 @thierryvolpiatto * Makefile: Generate autoloads from here now.
thierryvolpiatto authored Sep 15, 2014
61
62 # Make autoloads file
63 autoloads:
64 $(EVAL) "(let ((generated-autoload-file (expand-file-name \"helm-autoloads.el\" \"$(PKGDIR)\")) \
65 (backup-inhibited t)) (update-directory-autoloads \"$(PKGDIR)\"))"
Something went wrong with that request. Please try again.