# Makefile for bytecompiling EUDC

# Use with GNU make only.

# Add here a list of space separated directories containing the lisp files
# necessary to compile EUDC and that are not in the standard load path. In
# particular include the path to BBDB and Custom if necessary.
LISPLIBS=

SOURCES := $(wildcard *.el)
ELCS    := $(SOURCES:%.el=%.elc)

all : $(ELCS)

clean : 
	rm ${ELCS}

SHELL=/bin/sh
EMACS=emacs
LISPDIRS=. ${LISPLIBS}

%.elc : %.el
	${EMACS} -batch -no-site-file -eval '(setq load-path (append (quote ($(LISPDIRS:%="%"))) load-path))' -f batch-byte-compile $<
