1 # makefile for anything.
3 # Author: Michael Markert.
4 # Copyright (C) 2011~2012, Michael Markert, all rights reserved.
6 ## This file is NOT part of GNU Emacs
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)
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.
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.
26 EMACS
:= emacs
-Q
-batch
28 # additional emacs loadpath
32 EL
:= $(wildcard anything
*.el
)
37 .PHONY
: clean batch-compile
39 all: clean batch-compile
42 $(EMACS
) $(LOADPATH
) -f batch-byte-compile
$<
44 # compile needed files
47 # compile all files at once
49 $(EMACS
) $(LOADPATH
) -f batch-byte-compile
$(EL
)
51 # remove all generated files