# Copyright (C) 2001 Stéphane Levant # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This file is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with GNU Emacs; see the file COPYING. If not, write to # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA. # Put here all directory where the *.el are or let the wildcard function DIRS=$(wildcard . ./*/. ./*/*/.) SHELL = /bin/sh FILE = myloaddefs.el EMACS = emacs all: $(FILE)c $(FILE)c: $(FILE) $(EMACS) --batch -q --eval '(byte-compile-file "$(FILE)")' $(FILE): $(DIRS) if [ ! -f $(FILE) ]; then \ echo ";;; myloaddefs.el --- my automatically extracted autoloads" >\ $(FILE);\ echo ";;; Code:" >> $(FILE) ;\ echo " " >> $(FILE) ;\ echo ";;; myloaddefs.el ends here" >> $(FILE) ;\ fi $(EMACS) --batch -q --eval '(progn (setq generated-autoload-file "$(PWD)/$(FILE)") (batch-update-autoloads))' $(DIRS) rm -f $(FILE)~